South Africa held its nerve to win the second Twenty20 and the series against Sri Lanka on Friday despite a late charge by tailender Isuru Udana, who threatened to steal victory.

Udana smashed 84 not out from 48 balls batting at No. 8, but South Africa hung on to win by 16 runs and take a 2-0 lead in the three-match series.

More Images
Sri Lanka's Isuru Udana plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa held its nerve to win the second Twenty20 and the series against Sri Lanka on Friday despite a late charge by tailender Isuru Udana, who threatened to steal victory.

Sri Lanka's Lasith Malinga is bowled out playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

The victory at SuperSport Park was set up by half-centuries from opener Reeza Hendricks (65 off 46 balls) and Rassie van der Dussen (64 off 44). They shared a partnership of 116 for the second wicket, while stand-in captain JP Duminy hit 33 not out.

South Africa's Rassie van der Dussen celebrates after getting his 50 runs during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

More AP cricket: www.apnews.com/cricket and https://twitter/com/AP_Sports

South Africa's Reeza Hendricks looks on after playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Reeza Hendricks looks on after playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Rassie van der Dussen plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Rassie van der Dussen plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Niroshan Dickwella plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Niroshan Dickwella plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Dale Steyn, left celebrates with South Africa's JP Duminy (capt) after getting his second wicket during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Dale Steyn, left celebrates with South Africa's JP Duminy (capt) after getting his second wicket during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's JP Duminy with an attested run out during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's JP Duminy with an attested run out during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

He clobbered eight fours and six sixes but didn't have enough help at the other end as Sri Lanka finished on 164-9 in reply to South Africa's 180-3.

Sri Lanka's Isuru Udana plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Isuru Udana plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

The victory at SuperSport Park was set up by half-centuries from opener Reeza Hendricks (65 off 46 balls) and Rassie van der Dussen (64 off 44). They shared a partnership of 116 for the second wicket, while stand-in captain JP Duminy hit 33 not out.

South Africa left out regular captain Faf du Plessis, wicketkeeper-batsman Quinton de Kock and fast bowler Kagiso Rabada, who have been released for the rest of the series so they can head to the Indian Premier League.

Stepping in for Rabada, quick bowler Chris Morris took 3-32, while wicketkeeper Sinethemba Qeshile collected two catches on his international debut.

Sri Lanka's Lasith Malinga is bowled out playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Lasith Malinga is bowled out playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

More AP cricket: www.apnews.com/cricket and https://twitter/com/AP_Sports

South Africa's Rassie van der Dussen celebrates after getting his 50 runs during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Rassie van der Dussen celebrates after getting his 50 runs during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Reeza Hendricks looks on after playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Reeza Hendricks looks on after playing a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Rassie van der Dussen plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Rassie van der Dussen plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Niroshan Dickwella plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

Sri Lanka's Niroshan Dickwella plays a shot during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Dale Steyn, left celebrates with South Africa's JP Duminy (capt) after getting his second wicket during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's Dale Steyn, left celebrates with South Africa's JP Duminy (capt) after getting his second wicket during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's JP Duminy with an attested run out during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)

South Africa's JP Duminy with an attested run out during the T20I match between South Africa and Sri Lanka at SuperSport Park Stadium in Pretoria, South Africa, Friday, March, 22, 2019. (AP PhotoChristiaan Kotze)