Following the Iranian revolution, Habibi was named public spokesman for the revolutionary council. He was among the main architects of the first draft of Constitution of the Islamic Republic of Iran, which was later passed for more discussion to an elected Assembly of Experts for Constitution. The assembly made significant changes in the original draft, e.g. by introducing the new position of "leader of the Islamic Republic" based on Khomeini's concept of Guardianship of the Islamic Jurists, which gave almost unlimited power to the clergy. The modified version was approved in a popular referendum in 1979. In the 1980 presidential election, Habibi run for office, but received only ten percent of the vote against Banisadr's seventy percent. Habibi was backed by Mohammad Beheshti in the election process. In the same year he won a parliamentary seat, being a representative of the Islamic Republican Party.