In 1849, Stokes was appointed to the Lucasian professorship of mathematics at Cambridge, a position he held until his death in 1903. On June 1, 1899, the jubilee of this appointment was celebrated there in a ceremony, which was attended by numerous delegates from European and American universities. A commemorative gold medal was presented to Stokes by the chancellor of the university, and marble busts of Stokes by Hamo Thornycroft were formally offered to Pembroke College and to the university by Lord Kelvin. Stokes, who was made a baronet in 1889, further served his university by representing it in parliament from 1887 to 1892 as one of the two members for the Cambridge University constituency. During a portion of this period (1885–1890) he also was president of the Royal Society, of which he had been one of the secretaries since 1854. Since he was also Lucasian Professor at this time, Stokes was the first person to hold all three positions simultaneously; Newton held the same three, although not at the same time.