Answer
Stokes served as Lucasian Professor for an impressive 54 years, from 1849 until his passing in 1903. This extended tenure is a testament to his profound contributions to mathematics and physics, which earned him widespread recognition and solidified his legacy as one of the most influential scientists of his era.