The Eagles and the free agent guard agreed to a five-year on Saturday, the team announced. The deal is worth $25 million in base salary with $7 million guaranteed, an NFL source said. Mathis had offers from the Eagles and the Ravens as of Friday, but flew home to Arizona to mull over his decision.

The Eagles made a "competitive" offer on Friday, a league source said. It's unclear if they had to increase the offer to keep the 30-year old. Mathis, nevertheless, decided to stay in Philly where his career was resurrected.

With Mathis still in the fold the Eagles' improved starting offensive line will remain intact next season. All five starters -- tackles Jason Peters and Todd Herremans, center Jason Kelce, guard Danny Watkins and Mathis -- are signed through 2014.

Mathis started in only 22 games during his first seven seasons with three other teams. But he came to the Eagles as an unheralded free agent last summer and blossomed under the tutelage of line coach Howard Mudd.

Mathis visited Baltimore on Thursday but left the following day without signing a contract - a good sign for the Eagles. In the end, he chose comfort over playing for what would have been his fifth stop in the NFL.