Iranian revolution, 1905–11, caused by dissatisfaction with economic stagnation, influence of Western power, and results of the Russo-Japanese War of 1904–05 and the Russian revolution of 1905. It was sparked by the beating of a merchant accused by Tehran's governor of raising prices. Mullahs and merchants took sanctuary in Tehran's royal mosque, demanding justice from the shah. Radical preaching and violence ensued, as well as the demand for establishment of a parliament. The first majlis were created as a result in 1906, granting power to popular-class guilds. The intent was to set up a constitutional monarchy with power held by a parliament and chosen ministers. Majlis produced the Iranian constitution that remained in effect, albeit largely ignored by the monarchs, until the 1979 Islamic revolution.