LA Galaxy left back Todd Dunivant, hampered throughout most of the last two Major League Soccer season with injuries, will retire at the end of the season, the team has announced. During his 13-year MLS career, Dunivant has been part of five MLS Cup-winning teams and was named to the league’s Best XI after the 2011 season.

“I have given this game all that I can and will step away extremely thankful to have played in MLS for the last 13 seasons,” Dunivant said, in a statement released by the club. “It has been an honor to represent four great clubs and is extremely special for me be a part of this league as it has continued to develop.”

Dunivant, 34, entered the league in 2003 with the San Jose Earthquakes and played for the Galaxy, New York Red Bulls and Toronto FC before reuniting with his Red Bulls head coach, Bruce Arena, with Los Angeles in 2009.

SEE MORE: As NYCFC learned, it’s the LA Galaxy then everyone else in MLS right now.

During his time with the Galaxy, Dunivant has won four MLS Cups (2005, 2011, 2012, 2014), one U.S. Open Cup (2005), and two Supporter’s Shields (2010, 2011). Dunivant won another MLS Cup with San Jose in 2003.

“Todd has been one of the best ambassadors for MLS on-and-off the field,” Arena said. “He has represented both this team and our league exceptionally and has been influential in helping it become what it is today. We’re proud and honored that Todd will finish his career with the Galaxy.”

A two-time United States international, Dunivant was acquired by the Galaxy from Toronto for allocation money in 2009. Including his first stint with the team from 2005 to 2006, Dunivant has made 193 appearances with the Galaxy, scoring four times and recording 14 assists.

At one time seen as a prime example of Arena’s ability to leverage veteran talent, Dunivant cemented his own legacy in 2011,  making 36 appearances between the regular season and playoffs as the Galaxy won the league-MLS Cup double. His four assists that season were a career high, while league award voters honored his standout campaign with his only appearance in the league’s postseason Best XI.

To date, Dunivant has 282 career regular season appearances, recording seven goals and 21 assists.

SEE MORE: 10 things we learned from MLS game week 25.

I want to thank my family, coaches, teammates and fans, who have offered their constant support and helped make my career a successful one,” Dunivant said. “The Galaxy have played such a meaningful role during my time in MLS and I am happy to finish this season while representing this club.”

Still recovering from plantar fasciitis surgery, Dunivant will finish the season in the hopes of helping LA to their fourth MLS Cup in five years. Should he do so, Dunivant will tie Landon Donovan’s all-time individual record of six MLS Cup titles.