(CNN) -- Muttiah Muralitharan made history with his final ball in Test cricket by becoming the first bowler to reach 800 wickets as Sri Lanka thrashed bitter rivals India.
The spinner is the world's leading wicket-taker already but had targeted the landmark total before he hung up his boots after an 18-year career.
When India were reduced to 314-9 it looked as if Muralitharan would be forever stranded on 799 wickets, as Sri Lanka went in search of a resounding victory.
But with what became his last ever ball in Test cricket Muralitharan had India's last batsman, Pragyan Ojha, caught by Mahela Jayawardene.
The 38-year-old was then carried from the pitch in Galle by his teammates, and received a rapturous ovation from the crowd.
India's dismissal for 338 meant Sri Lanka needed only 95 runs to win the first Test and Tharanga Paranavitana and Tillakaratne Dilshan knocked them off for no wickets.
Muralitharan had been due to quit Tests after the November series against the West Indies, but this month brought forward his decision when the India tour was added to the calendar.
He will still be available for the 2011 World Cup which Sri Lanka will co-host with India and Bangladesh, but is expected to retire from all levels of the game after that.
CNN