However, in 1547, two fires destroyed much of the town, and in 1571 the Crimean Tatars captured Moscow, burning everything except the Kremlin. The annals record that only 30,000 of 200,000 inhabitants survived. The Crimean Tatars attacked again in 1591, but this time was held back by new defence walls, built between 1584 and 1591 by a craftsman named Fyodor Kon. In 1592, an outer earth rampart with 50 towers was erected around the city, including an area on the right bank of the Moscow River. As an outermost line of defence, a chain of strongly fortified monasteries was established beyond the ramparts to the south and east, principally the Novodevichy Convent and Donskoy, Danilov, Simonov, Novospasskiy, and Andronikov monasteries, most of which now house museums. From its ramparts, the city became poetically known as "Bielokamennaya", the "White-Walled". The limits of the city as marked by the ramparts built in 1592 are now marked by the Garden Ring. Three square gates existed on the eastern side of the Kremlin wall, which in the 17th century, were known as Konstantino-Eleninsky, Spassky, Nikolsky (owing their names to the icons of Constantine and Helen, the Saviour and St. Nicholas that hung over them). The last two were directly opposite the Red Square, while the Konstantino-Elenensky gate was located behind Saint Basil's Cathedral. The Russian famine of 1601–03 killed perhaps 100,000 in Moscow. From 1610 through 1612, troops of the Polish–Lithuanian Commonwealth occupied Moscow, as its ruler Sigismund III tried to take the Russian throne. In 1612, the people of Nizhny Novgorod and other Russian cities conducted by prince Dmitry Pozharsky and Kuzma Minin rose against the Polish occupants, besieged the Kremlin, and expelled them. In 1613, the Zemsky sobor elected Michael Romanov tsar, establishing the Romanov dynasty. The 17th century was rich in popular risings, such as the liberation of Moscow from the Polish–Lithuanian invaders (1612), the Salt Riot (1648), the Copper Riot (1662), and the Moscow Uprising of 1682. During the first half of the 17th century, the population of Moscow doubled from roughly 100,000 to 200,000.