section_path: History/Heian to Edo period
section_name: Heian to Edo period
paragraph_text: Heian to Edo period
  
  In 1496, Jōdo Shinshū Buddhists established their headquarters in the heavily fortified Ishiyama Hongan-ji, located directly on the site of the old Naniwa Imperial Palace. Oda Nobunaga began a decade-long siege campaign on the temple in 1570 which ultimately resulted in the surrender of the monks and subsequent razing of the temple. Toyotomi Hideyoshi constructed Osaka Castle in its place in 1583. Osaka Castle played a pivotal role in the Siege of Osaka (1614–1615).
  
  Osaka was long considered Japan's primary economic center, with a large percentage of the population belonging to the merchant class (see Four divisions of society). Over the course of the Edo period (1603–1867), Osaka grew into one of Japan's major cities and returned to its ancient role as a lively and important port. Daimyōs (feudal lords) received most of their income in the form of rice. Merchants in Osaka thus began to organize storehouses where they would store a daimyō ' s rice in exchange for a fee, trading it for either coin or a form of receipt; essentially a precursor to paper money. Many if not all of these rice brokers also made loans, and would actually become quite wealthy and powerful. Osaka merchants coalesced their shops around Dōjima, where the Rice Exchange was established in 1697 and where the world's first futures market would come to exist to sell rice that was not yet harvested.
  
  The popular culture of Osaka was closely related to ukiyo-e depictions of life in Edo. By 1780, Osaka had cultivated a vibrant arts culture, as typified by its famous Kabuki and Bunraku theaters. In 1837, Ōshio Heihachirō, a low-ranking samurai, led a peasant insurrection in response to the city's unwillingness to support the many poor and suffering families in the area. Approximately one-quarter of the city was razed before shogunal officials put down the rebellion, after which Ōshio killed himself. Osaka was opened to foreign trade by the government of the Bakufu at the same time as Hyogo Town (modern Kobe) on January 1, 1868, just before the advent of the Boshin War and the Meiji Restoration. The Kawaguchi foreign settlement, now the Kawaguchi subdistrict, is a legacy of the foreign presence in Osaka.
  
  Osaka residents were stereotyped in Edo literature from at least the 18th century. Jippensha Ikku in 1802 depicted Osakans as stingy almost beyond belief. In 1809, the derogatory term "Kamigata zeeroku" was used by Edo residents to characterize inhabitants of the Osaka region in terms of calculation, shrewdness, lack of civic spirit, and the vulgarity of Osaka dialect. Edo writers aspired to samurai culture, and saw themselves as poor but generous, chaste, and public spirited. Edo writers by contrast saw "zeeroku" as obsequious apprentices, stingy, greedy, gluttonous, and lewd. To some degree, Osaka residents are still stigmatized by Tokyo observers in the same way today, especially in terms of gluttony, evidenced in the phrase, "Residents of Osaka devour their food until they collapse" (大阪は食倒れ, "Ōsaka wa kuidaore").