United Nations General Assembly Resolution 2758 adopted October 25, 1971 replaced the UN seat of the Republic of China with that of the People's Republic of China. See China and the United Nations. Supporters of Taiwanese admission to the UN argue that the resolution only asserts that the PRC is the legitimate government of China, but makes no mention of the ROC being an illegimate government, nor of which (if either) is the legitimate ruler of the island of Taiwan (and, presumably, Kinmen, Matsu, and the Pescadores).
The full text is available on WikiSource.