Present-day capital of the Russian Federation, Moscow was capital of the Russian state from the end of the fifteenth century until 1712, and capital of the Soviet Union from 1918 to 1991. Jews were first mentioned in connection with Moscow in the fifteenth century. During the reign of Tsar Ivan IV (the Terrible; r. 1533–1584), Jews were forbidden to enter the region of Muscovy. They first appeared in Moscow during the Russian–Polish war of 1645–1667, some converting to Christianity and remaining in the city.