The republic occupies an area of 143,600 square kilometres in the far south-eastern corner of European Russia, bounded on the east by the Ural Mountains and within seventy kilometres of the Kazakhstan border at its southernmost point. The region was settled by nomads of the steppe, the Turkic Bashkirs, during the 13th-century domination by the Golden Horde. Russians arrived in the mid-16th century, founding the city of Ufa, now the republic's capital. Numerous local uprisings broke out in opposition to the settlement of larger Russian populations in the centuries that followed. The Bashkirs finally give up nomadic life in the 19th century, adopting the agricultural lifestyle that remains their primary means of support. The traditional clan-based social structure has largely disappeared. The predominant religions of the Bashkir population are Islam, which is observed by the majority, and Russian Orthodoxy. A major battleground of the Russian Civil War, in 1919 Bashkiria was the first ethnic region to be designated an autonomous republic of Russia under the new communist regime. The republic declared its sovereignty within the Soviet Union in 1990, and in 1992 it declared full independence. Two years later, Bashkortostan agreed to remain within the legislative framework of the Russian Federation, provided that mutual areas of competence were agreed upon.