The oldest evidence of human existence in the Ryukyu islands was discovered in Naha and Yaese. Some human bone fragments from the Paleolithic era were unearthed, but there is no clear evidence of Paleolithic remains. Japanese J?mon influences are dominant in the Okinawa Islands, although clay vessels in the Sakishima Islands have a commonality with those in Taiwan.
The first mention of the word Ryukyu was written in the Book of Sui. Okinawa was the Japanese word depicting the islands, first seen in the biography of Jianzhen, written in 779. Agricultural societies begun in the 8th century slowly developed until the 12th century. Since the islands are located in the center of the East China Sea relatively close to Japan, China and South-East Asia, the Ry?ky? Kingdom became a prosperous trading nation. Also during this period, many Gusukus, similar to castles, were constructed. The Ry?ky? Kingdom had a tributary relationship with the Chinese Empire beginning in the 15th century.
In 1609, the Shimazu clan, which controlled the region that is now Kagoshima Prefecture, invaded the Ry?ky? Kingdom. The Ry?ky? Kingdom was obliged to agree to form a tributary relationship with the Satsuma and the Tokugawa shogunate, while maintaining its previous tributary relationship with China; Ryukyuan sovereignty was maintained since complete annexation would have created a conflict with China. The Satsuma clan earned considerable profits from trades with China during a period in which foreign trade was heavily restricted by the shogunate.
Though Satsuma maintained strong influence over the islands, the Ry?ky? Kingdom maintained a considerable degree of domestic political freedom for over two hundred years. Four years after the 1868 Meiji Restoration, the Japanese government, through military incursions, officially annexed the kingdom and renamed it Ryukyu han. At the time, the Qing Dynasty of China asserted sovereignty over the islands of the Ry?ky?