The ruling Botswana Democratic Party (BDP) has won the general election after securing 29 national assembly seats, representing 51 percent of the vote, the chief justice announced on Friday.

Botswana voted on Wednesday to elect 57 national assembly and 490 local government representatives, with the candidate of the winning party set to become president.

The main opposition, the Umbrella for Democratic Change (UDC), secured 13 seats while the Botswana Patriotic Front won three and the Alliance for Progressive only one, with 73 percent of the voting districts counted so far.

The BDP will now have to move swiftly to transform the economy. Since independence from Britain in 1966, the Botswana economy has grown at 8 percent a year to become one of Africa’s most successful, but it is now at risk of coming unstuck because of over-reliance on a single commodity – diamonds.

“Although vote counting is still ongoing, the numbers of parliament seats attained so far by the BDP obliges me to declare Mokgweetsi Masisi as the elected president of Botswana,” said Chief Justice Terrence Rannowane.