was a frontier post protecting the then easternmost boundaries of Russia from forays of nomads. A local customs office was established in 1600. As more and more ships pulled into Samara's port, the town turned into a centre for diplomatic and economic links between Russia and the East. Samara also opened its gates to peasant war rebels headed by Stepan Razin and Yemelyan Pugachyov, welcoming them with traditional bread and salt. The town was visited by Peter the Great and later Tsars. In 1780, Samara was turned into an uyezd town of Simbirsk Governorate overseen by the local Governor-General, and Uyezd and Zemstvo Courts of Justice and a Board of Treasury were established. On January 1, 1851, Samara became the centre of Samara Governorate with an estimated population of 20,000. This gave a stimulus to the development of the economic, political and cultural life of the community. Samara was outside of the Pale of Settlement and as such did not have any significant Jewish population until the late 19th century. In 1877, during the Russian-Turkish War, a mission from the Samara city government Duma led by Petr Alabin, as a symbol of spiritual solidarity, brought a banner tailored in Samara pierced with bullets and saturated with the blood of both Russians and Bulgarians, to Bulgaria, which has become a symbol of Russian-Bulgarian friendship. Soviet period In 1935, Samara was renamed Kuybyshev in honour of the Bolshevik leader Valerian Kuybyshev. During World War II, Kuybyshev was chosen to be the alternative capital of the Soviet Union should Moscow fall to the invading Germans, until the summer of 1943, when everything was moved back to Moscow. In October 1941, the Communist Party and governmental organisations, diplomatic missions of foreign countries, leading cultural establishments and their staff were evacuated to the city. A dugout for Joseph Stalin known as "Stalin's Bunker" was constructed but never used. To mark its role as wartime national capital a special Revolution Day parade was held at the city's Kuybyshev Square on November 7, 1941, and since 2011 has been remembered in an annual military parade organised by the city government. As a leading industrial centre, Kuybyshev played a major role in arming the country. From the very first months of World War II the city supplied the front with aircraft, firearms, and ammunition. Health centres and most of the city's hospital facilities were turned into base hospitals.