South Africa’s African National Congress (ANC) is set to vote on who will succeed President Jacob Zuma as its leader.
The main contenders are the country’s deputy president, Cyril Ramaphosa, and former cabinet minister Nkosazana Dlamini-Zuma, President Zuma’s ex-wife.
The leadership battle has caused fierce political infighting, raising fears the party may split before 2019 elections.
Mr Zuma has warned the party is under threat and is at a “crossroads”.
The party has been in power since the country transitioned to democracy in 1994 under Nelson Mandela.
More than 5,000 delegates are taking part in the four-day ANC elective conference at the Expo Centre in Johannesburg.
The leadership contest is expected to be a close one, with legal challenges a possibility. The ballot is done in secret and a result is expected later on Sunday.
President Zuma, who has been in power since 2009, is expected to remain in power until the 2019 national elections. The country limits presidents to two five-year terms.
The 75-year-old has been at the heart of much of the controversy surrounding the ANC party. He currently faces numerous corruption allegations but denies any wrongdoing, having already survived several votes of no confidence in parliament during is presidency.
He is backing his 68-year-old former wife, Ms Dlamini-Zuma, a veteran politician in her own right, who has been critical of the enduring power of white-owned businesses. They have been divorced for almost 20 years and had four children together.
A former leader of the women’s wing of the ANC, Ms Dlamini-Zuma has served as foreign, home and health minister in government.
Her economic agenda is very different to main opponent, the country’s deputy president, Cyril Ramaphosa, who is one of the country’s wealthiest men and a former leading trade unionist.
Mr Ramaphosa, 65, has spoken out strongly against state corruption and has the backing of the business community.
Recent news that he had a modest lead in the polls was quickly reflected by a rise in the financial markets.
Others in the running for the leadership contest are the ANC’s treasurer general Zweli Mkhize, human settlements minister Lindiwe Sisulu, minister Jeff Radebe, former province leader Mathews Phosa and the speaker of South Africa’s lower house Baleka Mbete.
In his final speech as party leader at Saturday’s conference opening, Mr Zuma denounced the party’s “petty squabbling” during the leadership battle.
Last year’s disappointing results for the ANC in local elections, he said, “were a stark reminder that our people are not happy with the state of the ANC”.
In the speech he asserted that “theft and corruption” were as prominent in the private sector as they are in government. He added that “being black and successful is being made synonymous to being corrupt”.
He lashed out at the media, which he said was not “impartial and fair”. He also targeted the judiciary, arguing that the courts should have no role in deciding internal party matters.
The party has overwhelmingly won every victory since 1994, when democratic elections where everyone could vote brought the end to white-minority rule. But it polled only 54% in last year’s local elections, its worst result since taking power.
The BBC’s Andrew Harding says a question remains whether the ANC is in terminal decline, and what that might mean for South Africa’s stability and its future.