But a month-long attempt to broker an inclusive government failed. So, in August, Ramos-Horta ended the deadlock by swearing in Gusmão, a long-term political ally and former president, as prime minister.