Zambia became a republic immediately upon attaining independence in October 1964. From 2011 to 2014, Zambia's president had been Michael Sata, until Sata died on 28 October 2014. After Sata's death, Vice President Guy Scott, a Zambian of Scottish descent, became acting President of Zambia. Presidential elections were held on 22 January 2015. A total number of 11 presidential candidates contested in the election and On 24 January 2015, it was announced that Edgar Chagwa Lungu had won the election to become the 6th President in a tightly contested race. He won 48.33% of the vote, a lead of 1.66% over his closest rival, Hakainde Hichilema, with 46.67%. Nine other candidates all got less than 1% each. In August 2016 Zambian general election president Edgar Lungu won re-election narrowly in the first round of the election. The opposition had allegations of fraud and the governing Patriotic Front (PF) rejected the allegations made by opposition UPND party.