a stringent policy of seclusion, which helped to perpetuate the lack of any serious military threat to the city. The absence of war-inflicted devastation allowed Edo to devote the majority of its resources to rebuilding in the wake of the consistent fires, earthquakes, and other devastating natural disasters that plagued the city. This prolonged period of seclusion however came to an end with the arrival of American Commodore Matthew C. Perry in 1853. Commodore Perry forced the opening of the ports of Shimoda and Hakodate, leading to an increase in the demand for new foreign goods and subsequently a severe rise in inflation. Social unrest mounted in the wake of these higher prices and culminated in widespread rebellions and demonstrations, especially in the form of the "smashing" of rice establishments. Meanwhile, supporters of the Emperor leveraged the disruption that these widespread rebellious demonstrations were causing to further consolidate power by overthrowing the last Tokugawa shōgun, Yoshinobu, in 1867. After 265 years, the Pax Tokugawa came to an end. 1869–1943 Edo was renamed Tokyo (Eastern Capital) on September 3, 1868, as the new government was consolidating its power after the fall of the Edo shogunate. The young Emperor Meiji visited once at the end of that year and eventually moved in in 1869. Tokyo was already the nation's political center, and the emperor's residence made it a de facto imperial capital as well, with the former Edo Castle becoming the Imperial Palace. The city of Tokyo was officially established on May 1, 1889. The Tokyo Metro Ginza Line portion between and was the first subway line built in Japan and East Asia completed on December 30, 1927. Central Tokyo, like Osaka, has been designed since about 1900 to be centered on major railway stations in a high-density fashion, so suburban railways were built relatively cheaply at street level and with their own right-of-way. Though expressways have been built in Tokyo, the basic design has not changed. Tokyo went on to suffer two major catastrophes in the 20th century: the 1923 Great Kantō earthquake, which left 140,000 dead or missing; and World War II. 1943–1945 In 1943, the city of Tokyo merged with the prefecture of Tokyo to form the "Metropolitan Prefecture" of Tokyo. Since then, the Tokyo Metropolitan Government served as both the prefecture government for Tokyo, as well as administering the special wards of Tokyo, for what had previously been