Centurion: Graeme Smith scored a half-century but fell late on as South Africa made a confident reply after dismissing Sri Lanka for 180 on the opening day of the first Test.
Seam bowler Vernon Philander claimed five wickets for the hosts, who reached 90 for one at the close at Centurion.
South Africa captain Smith looked in fine form as he stroked seven fours in his 61 -- his 30th half-century in his 94th Test -- but played around a full delivery from Dilhara Fernando to be trapped lbw. Opening partner Jacques Rudolph was unbeaten on 27.
Sri Lanka`s bowers were steady, but they struggled to obtain the same assistance the South Africans did, even though the home attack sprayed the ball around disconcertingly at times.
South Africa`s much-vaunted attack were struggling in helpful conditions as Thilan Samaraweera and Angelo Mathews added 65 for the fifth wicket off just 80 balls.
The pair took Sri Lanka to 156 for four before Philander struck three times in four overs to complete his third five-wicket haul in three Tests.
Philander`s destructive burst began with two wickets in successive deliveries, both given out on review, as Samaraweera (36) edged an excellent delivery that nipped away off the seam and Kaushal Silva was adjudged to have brushed the ball with his glove as it flew to wicketkeeper Mark Boucher down the leg side.
Thisara Perera took a single off the hat-trick ball, but only lasted until the next over when he failed to read an Imran Tahir googly and Jacques Kallis made a stunning reflex catch at slip as the edge bounced off Boucher`s thigh.
Sri Lanka had lost three wickets in five balls to slump to 157 for seven and Philander struck again to have Mathews caught by Kallis for 38.
Philander made full use of the grass on the pitch to claim five for 53 in 13 overs.
Dale Steyn produced a couple of top-class away swingers to bowl Chanaka Welegedara (4) and Fernando (0) with successive deliveries, ending the Sri Lankan innings on the stroke of tea.
Steyn had earlier removed Tillakaratne Dilshan and Mahela Jayawardene, who edged a back-foot drive into the slips for 30, the fast bowler finishing with impressive figures of four for 18.
Captain Dilshan`s rash shot gave Sri Lanka a poor start and they battled to 76 for three at lunch after being put into bat.
Dilshan, on six, tried to on-drive a swinging delivery from Steyn on the up and looped a catch to Philander at wide mid-on.
Former captain Kumar Sangakkara lasted just three balls before Philander made a delivery rear up and induced an edge to second slip.
Sri Lanka were reeling on 12 for two, but Tharanga Paranavitana and the experienced Jayawardene batted with intense concentration in a sensible third-wicket stand of 54.
Steyn`s first wicket was his 250th in Tests, the 28-year-old reaching the landmark in his 49th game.
Only Dennis Lillee has taken 250 wickets in fewer Tests, the Australian fast bowler reaching the milestone in his 48th match.