From 1702 to 1975, East Timor was an overseas territory of Portugal named "Portuguese Timor". In 1974, Portugal initiated a gradual decolonization process of its remaining overseas territories, including Portuguese Timor. During the process, a civil conflict between the different Timorese parties erupted. In 1975, Indonesia invaded East Timor and in 1976, it formally annexed the territory, declaring it as its 27th province and renaming it Timor Timur. The United Nations, however, did not recognise the annexation, continuing to consider Portugal as the legitimate administering power of East Timor. Following the end of Indonesian occupation in 1999, and a United Nations administered transition period, East Timor became formally independent of Portugal in 2002 and adopted the official name of Timor-Leste.