By this change he became the third Andersson family member after his father Roy and brother Patrik to captain Malmö FF from the centre back position.
On 29 October 2011, Andersson announced that he would focus on his forthcoming coaching career as one of the three assistant managers for Malmö FF but emphasized that he would continue to play for the club when he was needed.
As a result of Tobias Linderoth getting injured, he was once again a regular starter at Euro 2008, although the team did not make it into the knockout stages of the competition.
[8] Andersson retired from the national team after the unsuccessful campaign to qualify for the 2010 World Cup, in order to devote his energies to Malmö FF.
His focus was primarily on the defensive side of training at first and helping former manager Rikard Norling with picking the starting eleven.
On 9 January 2014, Andersson assumed the role of director of sports at the club, taking over the position from Per Ågren who was stepping down.
[10] On 14 May 2018, Andersson took over as the caretaker manager at Malmö FF, following the sacking of Magnus Pehrsson; as the club was placed 10th in the league after nine rounds.