[b] The Ryukyu Kingdom was formally annexed and dissolved by Japan in 1879 to form Okinawa Prefecture, and the Ryukyuan monarchy was integrated into the new Japanese nobility.
[citation needed] Hokuzan, which constituted much of the northern half of the island, was the largest in terms of land area and military strength but was economically the weakest of the three.
Its political capital at Shuri, Nanzan was adjacent to the major port of Naha, and Kume-mura, the center of traditional Chinese education.
[7][8][9] On 30 January 1406, the Yongle Emperor expressed horror when the Ryukyuans castrated some of their own children to become eunuchs to serve in the Ming imperial palace.
The Chūzan leaders were officially recognized by Ming dynasty China as the rightful kings over those of Nanzan and Hokuzan, thus lending great legitimacy to their claims.
[citation needed] Shō Hashi adopted the Chinese hierarchical court system, built Shuri Castle and the town as his capital, and constructed Naha harbor.
[17] Japanese products—silver, swords, fans, lacquerware, folding screens—and Chinese products—medicinal herbs, minted coins, glazed ceramics, brocades, textiles—were traded within the kingdom for Southeast Asian sappanwood, rhino horn, tin, sugar, iron, ambergris, Indian ivory, and Arabian frankincense.
[17] The Chinese policy of haijin (海禁, "sea bans"), limiting trade with China to tributary states and those with formal authorization, along with the accompanying preferential treatment of the Ming Court towards Ryukyu, allowed the kingdom to flourish and prosper for roughly 150 years.
The rise of the wokou threat among other factors led to the gradual loss of Chinese preferential treatment;[19] the kingdom also suffered from increased maritime competition from Portuguese traders.
The Tokugawa shogunate that emerged following Hideyoshi's fall authorized the Shimazu family—feudal lords of the Satsuma domain (present-day Kagoshima Prefecture)—to send an expeditionary force to conquer the Ryukyus.
The subsequent invasion took place in 1609, but Satsuma still allowed the Ryukyu Kingdom to find itself in a period of "dual subordination" to Japan and China, wherein Ryukyuan tributary relations were maintained with both the Tokugawa shogunate and the Chinese court.
[12] Occupation occurred fairly quickly, with some fierce fighting, and King Shō Nei was taken prisoner to Kagoshima and later to Edo (modern-day Tokyo).
To avoid giving the Qing any reason for military action against Japan, the king was released two years later and the Ryukyu Kingdom regained a degree of autonomy.
[28][29][30] At the same time, the appearance of independence was maintained for diplomatic reasons with Qing China[31] until the Meiji government abolished the Ryukyu Kingdom when the islands were incorporated as Okinawa Prefecture on 27 March 1879.