Japan's first modern foreign action was the conquering of Ryukyu by the Satsuma Domain in 1879. However, this was not a part of a wider plan, and was done on the prerogative of the Satsuma Domain. Then, Japan won the First Sino-Japanese War and annexed Taiwan and Penghu in 1895. Following that, Japan built up a puppet state in Korea with the excuse of pacifying the Donghak Peasant Revolution. Japan finally occupied Korea in 1910.