|England's James Anderson had a terrific spell with three early wickets before Jayawardene steadied the pace with his second century in successive Tests [REUTERS]
Skipper Mahela Jayawardene cracked his second century in consecutive matches to pull Sri Lanka out of trouble in the second and final Test against England in Colombo on Tuesday.
Jayawardene followed his match-winning 180 in the first Test in Galle with a classy 105 after seamer James Anderson had reduced the hosts to 30 for three within the first hour at P. Sara Oval.
Thilan Samaraweera (54) added 124 for the fourth wicket with his captain as Sri Lanka recovered to post 238 for six by stumps on the opening day in a remarkable re-run of the Galle Test.
Sri Lanka had slumped to 15-3 in the first four overs of the match at Galle, before Jayawardene and Samaraweera rescued the hosts by putting on a half-century partnership.
A sell-out crowd of 5,000, mostly travelling English fans, applauded warmly when Jayawardene reached his 31st Test century with a single off left-arm spinner Samit Patel after tea.
The 34-year-old struck 11 fours and a six in his eighth hundred against England before he was trapped leg-before by off-spinner Graeme Swann with a sharp, turning delivery.
England, whose 75-run defeat at Galle followed a 3-0 rout by Pakistan in the United Arab Emirates earlier in the year, need a win to level the series and retain their number one ranking.
Andrew Strauss' men will slip to second spot behind South Africa if they lose or draw the match.
Sri Lanka first innings
L Thirimanne lbw b Anderson 8
T Dilshan c Prior b Anderson 14
K Sangakkara c Strauss b Anderson 0
M Jayawardene lbw b Swann 105
T Samaraweera lbw b Bresnan 54
A Mathews not out 41
P Jayawardene c Prior b Finn 7
S Randiv not out 5
Extras (b-4) 4
Total (for six wickets, 90 overs) 238
Fall of wickets: 1-21 2-21 3-30 4-154 5-216 6-227
To bat: R Herath, D Prasad, S Lakmal
Bowling: Anderson 17-2-52-3, Finn 18-3-43-1, Bresnan 15-2-32-1, Patel 16-3-32-0, Swann 22-2-71-1, Pietersen 2-0-4-0
Jayawardene lost Samaraweera just before tea, leg-before to seamer Tim Bresnan, but there was no respite for the England bowlers who toiled gamely under the hot sun.
Angelo Mathews, returning to the side after missing the first Test with a calf injury, was unbeaten on 41 after adding 62 runs for the fifth wicket with his skipper.
Prasanna Jayawardene was caught behind off Steven Finn for seven, but Suraj Randiv saw out the day on five.
Anderson struck in his third over when he forced Tillakaratne Dilshan to edge a catch to wicket-keeper Matt Prior after the previous two balls had been driven for boundaries.
Kumar Sangakkara was dismissed first ball for the second match in a row when he was snapped up by Strauss in the slips, the England captain taking the catch at second attempt.
Jayawardene once again prevented a hat-trick, as he had done in Galle, and went on to master the England attack on a dry wicket that is expected to crumble in the later stages of the match.
Lahiru Thirimanne padded up to a straight ball from Anderson and was given out leg-before by umpire Bruce Oxenford, a decision upheld by the third umpire after the batsman asked for a review.
The tourists went in with a three-man seam attack, bringing in Bresnan and Finn to partner Anderson with the new ball. Spinner Monty Panesar was dropped, while Stuart Broad has flown home with a calf injury.
Sri Lanka made two changes from the side that won in Galle, as a fit-again Mathews and Dhammika Prasad returned in place of Dinesh Chandimal and Chanaka Welegedara.