Iran voted by national referendum to become an Islamic republic on 1 April 1979 and to formulate and approve a new theocratic-republican constitution whereby Khomeini became supreme leader of the country in December 1979. The revolution was unusual for the surprise it created throughout the world.