Top-order colleagues Jonathan Trott and Kevin Pietersen shared an unbeaten 63-run stand for the third wicket to keep alive England's faint winning chance in the first cricket Test against Sri Lanka on Wednesday.
Chasing a 340-run victory target, England finished the third day on 111 for two wickets, still 229 runs behind what could be a record successful chase in Galle.
Trott (40) and Pietersen (29) will return on Thursday, hoping to continue the good work and provide the perfect platform for their batsmen to achieve the target.
Earlier, Sri Lanka's second innings folded for 214, riding largely on Prasanna Jayawardene's defiant 61 not out.
Otherwise, Trott and Pietersen batted comfortably on the slow surface which is expected to give the spinners more assistance on day four.
Left-arm spinner Rangana Herath, who claimed six English wickets in the first innings, removed both the English openers in their second.
Herath had Alastair Cook (14) caught behind by Prasanna Jayawardene before he captured the wicket of England captain Andrew Strauss (27).
Cook was initially ruled not out by the umpire, but Sri Lanka were confident of the catch and asked for a review which went in their favour.
Strauss failed to get to the pitch of the ball which was tossed up to him and was caught at short mid-wicket by a diving Tillakaratne Dilshan.
Sri Lanka owe their advantage to Prasanna Jayawardene who hit an unbeaten half-century to frustrate the England bowlers.
Sri Lanka's last two wickets made it an even more difficult run chase for England, adding 87 runs.
England, who needed to get the remaining five Sri Lankan wickets early on Wednesday after conceding a big first-innings lead, were kept on the field till mid-afternoon before they finally dismissed the hosts.
VITAL SUPPORT
Jayawardene got vital support from tailenders Chanaka Welegedara and Suranga Lakmal, each contributing 13 runs.
The pair helped Jayawardene to stitch together partnerships of 40 for the ninth wicket and 47 for the last as England's bowlers toiled hard.
Left-arm spinner Monty Panesar eventually got rid of Welegedara when he had him caught at the gully by Strauss.
Lakmal's 29-ball resistance ended with a run out as he attempted a second run to give Jayawardene the strike but failed to beat Pietersen's throw from deep mid-wicket to the bowler.
Off-spinner Graeme Swann finished with figures of six for 82 off 30 overs, his 12th five-wicket haul in Tests, while Panesar picked up two for 59.
In hot and humid conditions, Swann bowled unchanged for 15 overs in the morning to add two wickets to his overnight tally.
Panesar got the first breakthrough of the morning when he dismissed Dinesh Chandimal (31), who went for an inside-out shot but managed only to scoop the ball to Pietersen at mid-off.
His dismissal ended a 42-run sixth-wicket stand with Suraj Randiv (18).
Swann then got in on the act by trapping Randiv lbw and bowling out Herath (seven) but Jayawardene and Welegedara kept fighting.
Scorecard
Sri Lanka (1st innings): 318 (M. Jayawardene 180; J.Anderson 5-72)
England (1st innings): 193 (I. Bell 52; R. Herath 6-74)
Sri Lanka (2nd innings): (overnight 84-5)
L. Thirimanne b Swann 6
T. Dilshan b Broad 0
K. Sangakkara c Bell b Swann 14
M. Jayawardene c Anderson b Swann 5
T. Samaraweera st Prior b Swann 36
D. Chandimal c Pietersen b Panesar 31
S. Randiv lbw b Swann 18
P. Jayawardene not out 61
R. Herath b Swann 7
C. Welegedara c Strauss b Panesar 13
S. Lakmal run out 13
Extras: (b-1, lb-4, nb-4, w-1) 10
Total: (all out, 84.3 overs) 214
Fall of wickets: 1-4, 2-8, 3-14, 4-41, 5-72, 6-114, 7-115, 8-127, 9-167, 10-214.
Bowling: Anderson 10.3-2-26-0, Broad 11-2-33-1 (nb-4, w-1), Swann 30-5-82-6, Panesar 24-6-59-2, Patel 9-4-9-0.
England (2nd innings):
A. Strauss c Dilshan b Herath 27
A. Cook c P Jayawardene b Herath 14
J. Trott not out 40
K. Pietersen not out 29
Extras: (lb-1) 1
Total: (for two wickets, 40 overs) 111
Fall of wickets: 1-31 2-48
Bowling: Welegedara 5-2-16-0, Lakmal 3-1-9-0, Herath 15-3-52-2, Dilshan 9-1-14-0, Randiv 8-1-19-0.
Photograph: REUTERS / Dinuka Liyanawatte
Jayawardene frustrates England with defiant hundred
Sri Lanka recall Randiv, Prasanna for England series
Rest period is over and I'm set to play in the IPL: Sehwag
Kohli leads India's MVP race
Asia Cup: Sri Lanka axe Herath, recall Lakmal