Taiwan did not become Chinese territory until until the China Dynasty conquered the Koxinga's regime on Taiwan in 1693. During the China dynasty control, Taiwan was a domestic colony for 212 years and was given to Japan in 1895. Taiwan became a Japanese colony for the next 50 years.
In 1895, the Taiwanese declared the establishment of the Taiwan Democratic Republic, but its original intention was prevention for a Japanese takeover and restoration of Taiwan to the China dynasty. Within a few months the Japanese destroyed the Taiwan Democratic Republic, but the Taiwanese continued their guerrilla warfare against the Japanese until 1902.
…