Turkey’s Transport, Maritime, and Communication Minister Binali Yildirim was unanimously elected on Sunday as the new leader of the ruling AKP party and therefore Prime Minister.

Yildirim, who was the sole candidate, received 1,405 out of a total of 1,470 votes at a meeting of the Justice and Development Party, or AKP.

Hours later, Erdogan gave Yildirim the mandate to form a new government as prime minister following the resignation of Ahmet Davutoglu, the presidency said.

Federica Mogherini, High Representative of the European Union for Foreign Affairs, and Johannes Hahn, European Commissioner for Enlargement and Neighborhood Policy, sent their congratulations to Binali Yildirim, stressing that his appointment is extremely important not only for Turkey but also for further development of relations between Ankara and Brussels.

It was reported earlier that Akhmet Davutoglu said he would step down as Chairman of Turkey’s AKP ruling party and therefore Prime Minister on May 5.

The AKP is Turkey's leading party, which won the majority of votes in the last parliamentary elections. Traditionally, Chairman of a ruling party becomes Prime Minister.