In 1609, the Japanese feudal Domain of Satsuma invaded the Ryukyu Kingdom. After fierce fighting in the Amami Islands, they landed on Okinawa Island at Unten harbor. They attacked Nakijin Castle with heavy casualties on both sides, but the Japanese prevailed and burned the castle.