After the Iranian Revolution of 1979 and referendum to create the Islamic Republic on March 29 and 30, the new government needed to craft a new constitution. Ayatollah Ruhollah Khomeini, ordered an election for the Assembly of Experts, the body tasked with writing the constitution. The assembly presented the constitution on October 24th, 1979, and Supreme Leader Ruhollah Khomeini and Prime Minister Mehdi Bazargan approved it.