Following the presidency of Bani Sadr, after 5 months, he nominated Rajai for the position, and parliament voted him in. He appointed Khodapanahi as foreign minister, Mohammad-Reza Mahdavi Kani as interior minister and Javad Fakori as defence minister.