South Africa recovered from the blow of losing Aiden Markram on the second ball of the day to reach 100-3 Wednesday in the decisive third and final test against India.

Markram was bowled by a Jasprit Bumrah special that cut back in to hit the off stump and leave South Africa struggling on 17-2 in its first innings in response to India's 223.

More Images
India captain Virat Kohli and Kannur Rahul chat between balls during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South Africa recovered from the blow of losing Aiden Markram on the second ball of the day to reach 100-3 Wednesday in the decisive third and final test against India.

South African batsman Keshav Maharaj in action during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

Umesh Yadav followed up to remove nightwatchman Keshav Maharaj for 25 but Keegan Petersen was 40 not out and Rassie van der Dussen 17 not out to settle things for South Africa and cut the deficit to 123 runs.

South African batsman Keegan Peterson avoids a bowl during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South Africa started the second day on 17-1 and slipped to 45-3 before Petersen and van der Dussen put on an unbroken stand of 55.

South African batsman Keegan Peterson takes well needed drinks break during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Keegan Peterson takes well needed drinks break during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

India appeal for a wicket during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

India appeal for a wicket during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Rassie van Der Dussen plays a shot while India's wicketkeeper Rishabh Pant looks on during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Rassie van Der Dussen plays a shot while India's wicketkeeper Rishabh Pant looks on during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South Africa hadn't added to its overnight score when Markram went for 8.

India captain Virat Kohli and Kannur Rahul chat between balls during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

India captain Virat Kohli and Kannur Rahul chat between balls during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

Umesh Yadav followed up to remove nightwatchman Keshav Maharaj for 25 but Keegan Petersen was 40 not out and Rassie van der Dussen 17 not out to settle things for South Africa and cut the deficit to 123 runs.

The series is level at 1-1, setting up the series finale at Newlands in Cape Town, where top-ranked India could clinch its first test series win in South Africa.

Bumrah was India's main threat with his 2-16 having also removed South Africa captain Dean Elgar the day before.

South African batsman Keshav Maharaj in action during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Keshav Maharaj in action during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South Africa started the second day on 17-1 and slipped to 45-3 before Petersen and van der Dussen put on an unbroken stand of 55.

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

South African batsman Keegan Peterson avoids a bowl during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Keegan Peterson avoids a bowl during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Keegan Peterson takes well needed drinks break during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Keegan Peterson takes well needed drinks break during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

India appeal for a wicket during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

India appeal for a wicket during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Rassie van Der Dussen plays a shot while India's wicketkeeper Rishabh Pant looks on during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)

South African batsman Rassie van Der Dussen plays a shot while India's wicketkeeper Rishabh Pant looks on during the second day of the third and final test match between South Africa and India in Cape Town, South Africa, Wednesday, Jan. 12, 2022. (AP PhotoHalden Krog)