He said via his website:
Today I can inform you that I have signed with Chinese club Shanghai Shenhua FC for a two and a half year deal.
"Today I can inform you that I have signed with Chinese club Shanghai Shenhua FC for a two and a half year deal (until the end of 2014). I will fly out to join up with the squad in July.
I have considered all the offers I have received in the past few weeks, but I feel that Shanghai Shenhua FC is the right move for me at this time. I am looking forward to a new challenge and to experiencing a new culture, and I am excited about the new developments in the Chinese Super League. When Chelsea went to China last year, we had a great time and I met some amazing fans.
I hope to help promote Chinese football around the world and further improve the links between China and Africa."
He will join up with former Chelsea colleague Nicolas Anelka, who joined the club in January. Drogba has been linked with Shanghai for several months after contract talks with Chelsea stalled over the length of a new deal.
Shanghai owner Zhu Jun said: "We have been wanting to sign Didier for a while, and are very happy that it has finally happened. He is an incredible player, who has won so many trophies in his career, we feel that his experience and ability will be a very valuable asset to our squad. Shanghai is one of the most influential cities in the world, and we are very excited to welcome Didier here."
Shanghai's new manager Sergio Batista said: "Drogba is a very good soccer player, his outstanding skills and amazing experience will give us motivation to improve our games. It is my honour to invite him to join in our team. At last I have to say that the club owner Zhu Jun did his utmost to bring Drogba to Shenhua."