Ivanovic still had six months left on his deal, However, Roman Abramovich intervened to let the long-serving Chelsea star go for no fee to get more first-team football.
The switch has been officially announced.
Ivanovic spent nine years at Stamford Bridge after joining in 2008.