On 22 May 2017, Sangakkara announced that the following season would be his last in first-class cricket. He made the announcement after scoring four consecutive centuries becoming the fourth Surrey batsman to achieve this feat (Ian Ward was the last to do it in 2002), pass 20,000 first-class and having scored 592 runs in the said four games. He scored the fifth consecutive century on 26 May against Essex at the County Cricket Ground, Chelmsford. becoming only the eighth player to achieve this feat. In the quarter-final of the Royal London One-Day Cup against Yorkshire, he scored 121 from as many balls, which became his 100th century in all formats of the game combined, that now included 61 in first-class and 39 in List A games. Sangakkara became the first batsman to reach 1,000 runs for the season when he brought up his sixth century for the season against Yorkshire.