Kazan was largely destroyed in 1774 as a result of the Pugachev revolt (1774–1776), an uprising by border troops and peasants led by the Don Cossack ataman (Captain) Yemelyan Pugachev, but the city, formerly largely of timber construction, was soon afterwards rebuilt, using stone and according to a grid pattern plan, during the reign of Catherine the Great. Catherine also decreed that mosques could again be built in Kazan, the first being Marjani Mosque.