Following the Meiji Restoration, the Japanese government formally annexed what was known as the Ryukyu Kingdom as Okinawa Prefecture in 1879. The Senkaku Islands, which lay between the Ryukyu Kingdom and the Qing empire, became the Sino-Japanese boundary for the first time.