The constitution of the Islamic Republic of Iran was adopted by referendum on 24 October 1979. Before it could come into force on 3 December 1979, however, the government resigned on 6 November soon after the taking over of the American embassy, an act the government opposed but revolutionary leader Khomeini reluctantly supported. The Council of the Islamic Revolution then served as the country's government until the formation of the first Islamic Consultative Assembly on 12 August 1980. Bazargan was elected to the first Islamic Consultative Assembly representing Tehran.