Thousands of protesters are out on the streets of Istanbul after the arrest of the city's mayor Ekrem Imamoglu.
For the first time in 20 years, Erdogan's political future is really on the line. He must now prove that he is a leader who can get things done and can mobilise effectively the machine of the state to provide relief to the affected people and help them rebuild their homes and their lives.
"Our nation has given me the mandate for the presidency," Erdogan said in a victory speech in Istanbul, noting his declaration was based on unofficial results. "I would like to congratulate our nation once again. This has been another test of democracy and we have passed this test successfully," CNN quoted the Turkish president as saying.
We bring you a collection of some of the best photographs taken this week by ace Reuters photographers.