The African National Congress, the party of Nelson Mandela that has been in power since 1994, is likely to win a majority but it will face a difficult challenge to match the 62% of the vote that it won in the previous election five years ago.
The party has been tarnished by widespread corruption scandals and a national unemployment rate of 27% that has left many voters disillusioned. President Cyril Ramaphosa, head of the ANC, has campaigned on promises to clean up the rot in his party, an acknowledgment of the problems that forced his predecessor, Jacob Zuma, to resign last year.
The ANC also has vowed to embark on a program of seizing white-owned land without compensation, and for this it needs a 67% majority to change South Africa's constitution. In the most likely scenario, the ANC will need to form a coalition government with another party to get the votes needed to alter the constitution. That is likely to be the Economic Freedom Fighters, a populist, left-wing party that also supports land seizures.
If the ANC's share of the vote slips below 60%, Ramaphosa could be vulnerable and his party could oust him and choose a new leader. The largest opposition party, the Democratic Alliance, has campaigned vigorously against corruption but its support among the black majority is limited because it is perceived as a white-run party. More than 40 smaller parties also are vying for power in the balloting.
"It's an important election for South Africa, because the country is looking for someone to lead us out of this mess," said Barney Mthombothi, a political commentator, referring to the scandals and economic doldrums.
"But there is not a lot of excitement. People no longer have faith in the ANC," he said. "Many people I've spoken to are still not sure who they will vote for. People are going to the polls with a shrug of their shoulders."
The country's young voters, who make up about 20 percent of the electorate, largely support the EFF, which is led by charismatic firebrand Julius Malema, who broke from the ANC six years ago. "The ANC is being eaten from the left and from the right," Mthombothi said, referring to the challenge Ramaphosa's party faces from the EFF and the DA. "The EFF appeals to the young and they are enthusiastic. It is the older voters who are not excited about any of the main three parties."
Neither the president nor the parliament is elected directly. Voters cast ballots for a national party and the number of votes won by each party determines how many representatives are sent to the legislature. The president is the leader of the party that gets the most votes.
Some 26 million people of the country's population of 57 million are eligible to vote. The polls open at 7 a.m. local time and close at 9 p.m. (0500 to 1900 GMT; 1 a.m. to 3 p.m. EDT). The day is a national holiday to encourage turnout, and South Africa was famous for its long lines of voters in the first post-apartheid election 25 years ago. But a sense of national apathy this year could be an ominous sign for the ANC.
Preliminary results will be announced from the electoral commission in the capital, Pretoria, and final results are not expected for 48 hours. In a column on the popular Eyewitness News website, commentator Mahlatse Mahlase offered tips for the many voters this year who are described as undecided or disillusioned.
"My advice to you is to undertake a process of elimination and to borrow from a certain political choice of words: Choose 'the better devil' of our time," she wrote. "They may all be deeply flawed. But there is surely someone you believe to be the 'least bad' of all? That should be your choice. Unlike marriage, in elections you have the option to opt out of your choice every five years."