尚巴志王
The date of construction is uncertain, but it was clearly in use as a castle during the Sanzan period (1322–1429). It is thought that it was probably built during the Gusuku period, like many other castles of Okinawa. When King Shō Hashi unified the three principalities of Okinawa and established the Ryukyu Kingdom, he used Shuri as a residence. At the same time, Shuri flourished as the capital and continued to do so during the Second Shō Dynasty.