In October 2011, Magalhães returned to East Timor, where he joined Taur Matan Ruak's campaign team in the 2012 East Timorese presidential election. Initially, he was Vice-President for Socio-Political Research and Communication; later, Taur Matan Ruak appointed him as his official spokesman.