 After East Timor achieved independence in 2002, Ramos-Horta was appointed as the country's first foreign minister.He served in this position until his resignation on 25 June 2006, amidst political turmoil.On 26 June, following the resignation of Prime Minister Mari Alkatiri, Ramos-Horta was appointed as acting Prime Minister by President Xanana Gusmão.