 Two weeks later, on 10 July 2006, he was sworn in as the second Prime Minister of East Timor.He was elected as President in 2007.On 11 February 2008, Ramos-Horta was shot during an assassination attempt.