尚寧王
Samurai forces from the Japanese feudal domain of Satsuma seized Shuri Castle on 5 April 1609. The samurai withdrew soon afterwards, returning King Shō Nei to his throne, and the castle and city to the Okinawans, though the kingdom was now a vassal state under Satsuma's suzerainty and would remain so for roughly 250 years. The American Commodore Perry, when he came to Okinawa in the 1850s, forced his way into Shuri Castle on two separate occasions, but was denied an audience with the king both times.