The hosts chased down a measly victory target of 122 losing two wickets in the process. Warnapura remained unbeaten on 54 while Jayawardene made an undefeated 50.
Lankans got off to a poor start losing Vandort (8) and Sangakkara (4) in quick succession. However Warnapura and Mahela ensured no further damage as Lanka sailed past the target with eight wickets in hand and a day to spare.
Earlier, India resuming at 161/5, were bowled out for 268 in their second innings despite the fighting knocks from Rahul Dravid (68) and VVS Laxman (61 n o).
Lankan offie Murali claimed 3/99. Unorthodox spinner Mendis took 3/81 to finish with 26 wickets - record for a bowler in debut series.
Lanka won the first Test at SSC by an innings and 239 runs. India replied back strongly in the second Test to ensure parity in the series with a convencing 170-run win.