Doug Melvin is leaving his job as general manager of the Milwaukee Brewers.
The team and Melvin announced the move Tuesday on Twitter. He will continue to lead the team's baseball operations department before "transitioning into an advisory role."
The Brewers are in last place in the NL Central and are in Chicago to start a three-game series with the Cubs.
Milwaukee is rebuilding, having traded Carlos Gomez and Aramis Ramirez at the July 31 trade deadline. Melvin fired manager Ron Roenicke in May and replaced him with Craig Counsell.
The Brewers are 48-65, with the second-worst record in the NL. This follows the late-season collapse in 2014 when the Brewers fell out of first place and the playoff race.
Melvin joined the Brewers on Sept. 26, 2002 as the eighth general manager in the team's history. A team starving for success won the NL wild card in 2008 and the NL Central in 2011.
The following year, Melvin signed a contract extension keeping him with the team through this season. He was also promoted to president of baseball operations and general manager.