In 2002, Rousseff became an energy policy advisor to presidential candidate Luiz Inácio Lula da Silva, who on winning the election invited her to become his minister of energy. Chief of Staff José Dirceu resigned in 2005 in a political crisis triggered by the Mensalão corruption scandal. Rousseff became chief of staff and remained in that post until 31 March 2010, when she stepped down to run for president. She was elected in a run-off on 31 October 2010, beating Brazilian Social Democracy Party (PSDB) candidate José Serra. On 26 October 2014 she won a narrow second-round victory over Aécio Neves, also of the PSDB.