The Colombian left won the presidency for the first time in Sunday's runoff election, with ex-guerrilla and former Bogota Mayor Gustavo Petro, with the Pacto Historico coalition, emerging victorious.

With 98.86 percent of the votes counted, Petro has obtained 11,185,671 votes - or 50.49 percent - to independent populist Rodolfo Hernandez's 10,468,781, or 47.25 percent, the National Registry announced.

Petro's advantage over Hernandez, a 77-year-old real estate magnate with the League of Anticorruption Governors party, stands at 716,890, or 3.24 percent, and that is above what the voter surveys had given him as they predicted a technical tie and some of them putting the two men within one percentage point of each other.

Thus, Petro, a 62-year-old economist and senator who has run for president twice before, on Aug. 7 will succeed President Ivan Duque and will govern from 2022-2026.