(CNN) -- Sri Lanka captain Kumar Sangakkara hit a defiant century to give the tourists a slim hope of saving the third and final Test against India in Mumbai.
Coming in at No. 3, Sangakkara ended the fourth day unbeaten on 133 as Sri Lanka again struggled with the bat in response to India's mammoth 726-9, reaching 274-6 in their second innings at stumps -- still 59 runs behind.
His team, 1-0 down in the series, had resumed on Saturday on 11-0 but lost Tillakaratne Dilshan for 16 within half an hour as he was controversially given out leg before wicket after not playing a shot to spinner Harbhajan Singh.
Umpire Daryl Harper raised the finger, but replays suggested the ball would have missed leg stump.
Sangakkara then helped Tharanga Paranavitana add 90 for the second wicket before the opener was trapped lbw by second Test hero Shanthakumaran Sreesanth for 54, one run more than he made in the first innings.
That triggered another Sri Lankan collapse as Sreesanth's fellow seamer Zaheer Khan enticed Mahela Jayawardene to edge a catch to wicketkeeper Mahendra Dhoni Singh for 12, and then dismissed Thilan Samraweera for a 13-ball duck, caught at slip by VVS Laxman.
Angelo Mathews (5) then gloved a ball from left-arm spinner Pragyan Ojha to Dhoni, giving the India captain his 100th Test catch as Sri Lanka slumped to 144-5 at tea.
Sangakkara and Prasanna Jayawardene then put on 64 before the latter went lbw to Ojha for 32, giving India's bowlers a chance to get at the tail-end batsmen.
However, Nuwan Kulasekara stood firm to add nine in a 66-run partnership with Sangakkara, who smashed Ojha for a six and four off successive deliveries and reached his 21st Test century as he took toll on the second new ball.
India are still in the box seat to complete a 2-0 series victory and leapfrog second-placed Sri Lanka and current incumbent South Africa to take the world No. 1 ranking in Test cricket.
Set a daunting 405 to win, the home side -- who made just 99 in their first knock -- were left reeling at 70-3 at stumps as Mohammed Asif took all three wickets.
Pakistan's second innings had been ended on 239 just before tea, with veteran seamer Iain O'Brien taking 4-66 before announcing he will retire after the final Test in Napier next week.
Fast bowler Chris Martin also claimed four wickets, while Grant Elliott took two in two balls. Pakistan captain Mohammad Yousuf top-scored with 83, while Umar Akmal contributed 52.
Australia openers Shane Watson and Simon Katich put on an unbroken 174 as the home side made a strong reply to the West Indies' 451 on the second day of the second Test in Adelaide.
Resuming on 336-6, the tourists added 115 after Brendan Nash (92) and last man Ravi Rampaul (40 not out) put on a Windies record 10th-wicket partnership of 68.
All-rounder Watson, who took two wickets with the ball, shrugged off his recent lack of form to post his fifth half-century to be unbeaten on 96 -- but was lucky to be dropped by Denesh Ramdin four runs earlier.
Katich followed up his 92 from the opening victory in Brisbane to make a patient 71 from 148 deliveries.