One of the co-founders of the AK Party along with Erdogan, Yildirim, 60, won all the votes from the 1,405 delegates at an extraordinary party congress.
Yildirim was the sole candidate at the congress, which was announced after Ahmet Davutoglu said earlier this month he was stepping down following an increasingly public rift with Erdogan.