Shuri, Okinawa – Wikipedia

Shuri Castle was first built during the reign of Shunbajunki (r. 1237-1248), who ruled from nearby Urasoe Castle. This was nearly a century before Okinawa Island would become divided into the three kingdoms of Hokuzan, Nanzan, and Chūzan; nearly two centuries before the unification of those kingdoms and establishment of the Ryūkyū Kingdom.

https://en.wikipedia.org/wiki/Shuri,_Okinawa