Alastair Cook
Alastair Cook become only the fifth batsman to score a ton in his maiden and farewell Tests.Jordan Mansfield/Getty Images

Alastair Cook wrote a fairytale ending to his international career by scoring a century in his final test match for England against India at The Oval in London, in the fifth test of India's tour of England.

After a steady 71 in the first innings, the former England captain scored a superb century, ending his final innings in test cricket with a score of 147, to give England a commanding lead.

Following the day's play, the English media presented Cook with 33 bottles of beer as a gesture of gratitude for his phenomenal career and being a warm and approachable figure to them.

He was presented with the bottles by Daily Mirror journalist Dean Wilson, who thanked Cook for everything that he's done for English cricket as a captain and player.

"On behalf of all the media, we appreciate everything you have done as a player and captain for England over the years, particularly the way you dealt with us. There have been ups and downs but you dealt with us very professionally. We just want to show our appreciation for everything." said Wilson.

The journalist recalled an instance when Cook told him that he's a "beer person" rather than the wine drinker and hence was gifted 33 bottles of beer - one each for every century Cook has scored in test cricket for England.

Cook is the leading run-scorer for England in test cricket, with 12472 runs in 161 matches, with an average of 45.35 and is fifth in the list of all-time run scorers behind Sachin Tendulkar, Ricky Ponting, Jacques Kallis, and Rahul Dravid.

The former England captain announced his decision to retire from international cricket ahead of the fifth test but will continue to play county cricket for Essex.