Before the Ryukyu Kingdom was created, Okinawa was made up of three countries: Nanzan, Chuzan, and Hokuzan. Chuzan took over the other two kingdoms, united the three kingdoms, and created the Ryukyu Kingdom. The kingdom had its own dynasty of kings and they ruled from Shuri Castle in the city of Shuri. Although they used to be different cities, Shuri is now in the northern part of present-day Naha.