Iran turned into Shia theocratic republic, after the 1979 revolution which ended Iranian monarchy.