After the end of the Second World War, China recovered the territories invaded and occupied by Japan, such as Taiwan and the Penghu Islands, in accordance with the Cairo Declaration and the Potsdam Proclamation, which was accepted by Japan at its surrender.