section_path: History/Asuka and Nara period
section_name: Asuka and Nara period
paragraph_text: Asuka and Nara period
  
  The Kojiki records that during 390–430 CE, there was an imperial palace located at Osumi, in what is present day Higashiyodogawa ward, but it may have been a secondary imperial residence rather than a capital.
  
  In 645, Emperor Kōtoku built his Naniwa Nagara-Toyosaki Palace in what is now Osaka, making it the capital of Japan. The city now known as Osaka was at this time referred to as Naniwa (written as 浪華 or 浪花) and this name and derivations of it are still in use for districts in central Osaka such as Naniwa (浪速) and Namba (難波). Although the capital was moved to Asuka (in Nara Prefecture today) in 655, Naniwa remained a vital connection, by land and sea, between Yamato (modern day Nara Prefecture), Korea, and China.
  
  Naniwa was declared the capital again in 744 by order of Emperor Shōmu, and remained so until 745, when the Imperial Court moved back to Heijō-kyō (now Nara). By the end of the Nara period, Naniwa's seaport roles had been gradually taken over by neighboring areas, but it remained a lively center of river, channel, and land transportation between Heian-kyō (Kyoto today) and other destinations. Sumiyoshi Taisha Grand Shrine was founded by Tamomi no Sukune in 211 CE. Shitennō-ji was first built in 593 CE and is the oldest Buddhist temple in Japan.