East Timor–Indonesia relations
East Timor and Indonesia established diplomatic relations in 2002. Both share the island of Timor. Indonesia invaded the former Portuguese colony in 1975 and annexed East Timor in 1976, maintaining East Timor as its 27th province until a United Nations-sponsored referendum in 1999, in which the people of East Timor chose independence. Following a United Nations interim administration, East Timor gained independence in 2002. Indonesia has an embassy in Dili. East Timor has an embassy in Jakarta and a consulate in Denpasar and Kupang. Historical background. Portugal took control of the territory that would become  known as Portuguese Timor in the middle of the 18th century, and maintained the eastern half of the island (West Timor was a Dutch possession until World War II) as a colony until Portugal's left-leaning Carnation Revolution in 1974. Portugal declared its intent to give its former colony independence and local parties formed, intending to contest East Timor's first free elections scheduled for 1976. Indonesia, then firmly-rooted in the anti-Soviet camp in Southeast Asia, was alarmed by the left-leaning parties that looked set to win that election. Indonesian invaded the territory in 1975 and  annexed East Timor the following year. The subsequent 24-year occupation of East Timor caused great damage to Indonesia's diplomatic relations and to its International reputation. Falintil, the armed wing of the leftist East Timorese political party Fretilin became the major source of resistance to Indonesia's annexation, but military resistance was eventually all but eliminated. Poet and semi-professional football goalkeeper Xanana Gusmão, led 20 years of low-level insurrection and diplomatic pressure against the occupation. Gusmão became East Timor's first president following its independence. East Timorese independence. Following Suharto's forced resignation in 1998, his Vice  President and successor BJ Habibie offered a surprise referendum on East Timorese independence. After 78% of East Timorese chose independence in the referendum, Habibie was attacked across the Indonesian political spectrum for betraying national interests and lost what little chance he had of retaining the presidency in Indonesia's October 1999 election. He was replaced by Abdurrahman Wahid, a staunch opponent of East Timorese independence. Parts of the Indonesian military were strongly opposed to the East Timorese independence and had spent much of 1998 and 1999 arming pro-Indonesia partisans and arranging attacks on independence groups. Within hours of the  referendum results being announced by UN Special Envoy to East Timor Jamsheed Marker, the Indonesian military enacted a scorched earth plan in the territory, destroying over half of the territory's fixed infrastructure, killing about 1,500 East Timorese and displacing a further 300,000 people over the next few weeks, until an Australian-led UN peace-keeping force arrived in the country on 20 September 1999. The United Nations Transitional Administration in East Timor (UNTAET) provided an interim civil administration and a peacekeeping mission in the territory of East Timor, from its establishment in October 1999 until the territory's independence  on 20 May 2002. After 2002. Problems to be solved include, East Timor-Indonesia Boundary Committee meetings to survey and delimit land boundary; and Indonesia is seeking resolution of East Timorese refugees in Indonesia. Indonesia is East Timor's largest import partner, with the former exporting USD 187 million (32% of imports) worth of goods in 2017 while the latter only exported USD 6 million in the opposite direction. Indonesia has been a supporter of East Timor's accession into ASEAN, especially during the chairmanship of Susilo Bambang Yudhoyono.