John Dramani Mahama, Ghana's incoming president, has won a chance to rewrite his legacy.

He was voted out of office in 2016 by what was then the highest margin in the post-independence history of the west African nation amid corruption scandals and an energy crisis that had crippled the country.

But he has made a comeback, winning 56.55% of the total valid votes cast according to the country's Electoral Commission.

It is the largest margin of victory in a Ghanaian election since 1996.