South Africa's president is vowing to purge his party of "bad and deviant tendencies" as he prepares to appoint a new Cabinet following a victory in national elections.

The 57% share of the vote was the worst-ever election showing for the African National Congress, which has ruled since the apartheid system of racial discrimination ended 25 years ago.

More Images
Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

South Africa's president is vowing to purge his party of "bad and deviant tendencies" as he prepares to appoint a new Cabinet following a victory in national elections.

African National Congress party (ANC) President Cyril Ramaphosa arrives to address a rally at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019. The ANC won Wednesday's South Africa's general election. (AP PhotoJerome Delay)

Current President Cyril Ramaphosa in his first speech to supporters since the election win said Sunday he will not appoint leaders who work "to fill their own pockets."

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg, South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg, South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress (ANC), president Cyril Ramaphosa, center, with his national executive greets supporters during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, center, with his national executive greets supporters during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election. President Cyril Ramaphosa is expected to address the rally. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election. President Cyril Ramaphosa is expected to address the rally. (AP PhotoJerome Delay)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with party member during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with party member during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC), president Cyril Ramaphosa, addresses supporters during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, addresses supporters during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with secretary-general Ace Magashule during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with secretary-general Ace Magashule during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC) gather during their celebration after the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC) gather during their celebration after the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Low voter turnout also reflected the frustration of many South Africans after corruption scandals around the ANC that led former president Jacob Zuma to resign last year under party pressure.

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Current President Cyril Ramaphosa in his first speech to supporters since the election win said Sunday he will not appoint leaders who work "to fill their own pockets."

Ramaphosa is believed to be facing a revolt within the party by Zuma allies.

African National Congress party (ANC) President Cyril Ramaphosa arrives to address a rally at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019. The ANC won Wednesday's South Africa's general election. (AP PhotoJerome Delay)

African National Congress party (ANC) President Cyril Ramaphosa arrives to address a rally at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019. The ANC won Wednesday's South Africa's general election. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg, South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg, South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election and cheer President Cyril Ramaphosa during his speech. (AP PhotoJerome Delay)

African National Congress (ANC), president Cyril Ramaphosa, center, with his national executive greets supporters during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, center, with his national executive greets supporters during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election. President Cyril Ramaphosa is expected to address the rally. (AP PhotoJerome Delay)

African National Congress party (ANC) supporters gather at the ANC's headquarters in Johannesburg , South Africa, Sunday May 12, 2019 to celebrate their party's victory in South Africa's general election. President Cyril Ramaphosa is expected to address the rally. (AP PhotoJerome Delay)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC), during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with party member during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with party member during their celebration for election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC), president Cyril Ramaphosa, addresses supporters during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, addresses supporters during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC) supporters gather outside the party's headquarters in downtown Johannesburg, Sunday, May 12, 2019 to celebrate the party's win in elections. South Africans voted Wednesday with results showing that the ruling ANC has won the national elections but has seen its share of the vote drop significantly. (AP PhotoMujahid Safodien)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with secretary-general Ace Magashule during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

African National Congress (ANC), president Cyril Ramaphosa, left, dances with secretary-general Ace Magashule during their celebration of the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC) gather during their celebration after the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)

Supporters of African National Congress (ANC) gather during their celebration after the election victory in Johannesburg, South Africa, Sunday, May 12, 2019. South Africa's ruling African National Congress on Saturday marked its weakest victory in national elections in a quarter-century, while Ramaphosa declared that the vote had given him and others "a firm mandate to build a better South Africa for all." (AP PhotoThemba Hadebe)