Quetta is the capital of Baluchistan. It is located in West Central Pakistan, at an altitude of 5,500 ft (1,675 m), ringed by mountains. The actual population of the city before the 1979 Soviet Invasion on neighbouring Afganistan was around 500,000. Now the city is home to over 1 million and many are refugees who fled Afganistan! Deriving its name from the Pashto word kawkot [fort], it commands the entrance through the strategic Bolan Pass into Afghanistan and is a trade center for Afghanistan, Iran, and much of Central Asia! The city's cottage industries produce textiles, food products and carpets. The city was occupied (1876) by the British following the Second Afghan War, and it gained prominence as the seat of British resident Sir Robert Sandeman. It became a strongly garrisoned British military station. Much of the present city was rebuilt after a disastrous earthquake in 1935. Quetta has a military staff college (est. 1907) and a geophysical observatory. Like many major Pakistani border cities, Quetta was a magnet for some of the millions of Afghan refugees who fled after the 1979 Soviet invasion; the refugees who remain have swelled the local population to an estimated 2 million people!