Batting first, India declared its first innings on 622 for nine and dismissed Sri Lanka for 183 and enforced the follow-on, commanding a 439-run lead.
But the hosts fought back through a defiant 191-run partnership for the second wicket between Karunaratne and Kusal Mendis, who fell for 110.
Indian skipper Virat Kohli, who on August 6 became the first Indian captain to win two Test series in Sri Lanka after beating the island nation by an innings and 53 runs in the second Test match, met India's former World Wrestling Entertainment (WWE) wrestler "The Great Khali" after post match press conference in Colombo. "That's where we think they're very precious, specially in the longer format because they provide you with great balance", Kohli told reporters. Defeating Sri Lanka at their home is never an easy job but the Indian team has done that like a boss. "Very happy that we went through the hard phases as well and you never get complacent as a side then". Rahul managed to grab the ball with his body, affecting the first dismissal with luck on his side as Ravichandran Ashwin's delivery had not threatened the batsman's existence at the crease unless he made a mistake. "Credit goes to them, they batted brilliantly in the first innings and put us under huge pressure", said Chandimal. "I'm really happy the way guys played in the second innings".More news: Changes to the National Security Council
Sri Lanka resumed day four on 209 for two and looked determined to make India bat again.
However, India will badly miss Jadeja's services in the third and final Test starting Saturday in Pallekele, after the ICC slapped the all-rounder with a one-match ban and a fine for risky play. It could mean Kuldeep doing really well against weak opposition and getting his confidence up unnecessarily, while it could also mean denting his confidence considerably if this Sri Lanka side take a liking to him.
Bowling: Yadav 13-2-39-1, Ashwin 37.5-7-132-2, Shami 12-3-27-0, Jadeja 39-5-152-5, Pandya 15-2-31-2.More news: Trump says Foxconn CEO may invest $30B
MATCH REFEREE: R.B. Richardson (West Indies).
Unable to follow on, the Sri Lankan batsmen got all out for 386 runs in their second innings on the penultimate day of the Test.More news: Euro jumps to January 2015 highs on European Central Bank speculation