Mathieu Flamini has returned to AC Milan less than a week after being freed to sign a new contract.
Over the weekend, Milan's vice-president Adriano Galliani announced talks with the Frenchman had ceased and he had been released.
However, just days later the 28-year-old opened fresh talks and has now agreed a one-year deal.
A statement from AC Milan read: "Mathieu Flamini, Rossonero since 2008 and also next season."
Flamini, who was linked with possible moves to Malaga and Napoli, has reportedly agreed a significant pay cut to remain with the Italian giants.
The midfielder joined Milan from Arsenal in 2008 but missed most of last season with a serious knee injury.
The former Marseille player has made 100 appearances in all competitions for Milan, scoring four goals, and helped them win the Serie A title and Italian Super Cup in 2011.