Background
The fourth son of Henry Ainslie Doctor of Medicine Fellow of the Royal College of Physicians (1760–1834), Ainslie was born at Kendal and educated at Charterhouse.
The fourth son of Henry Ainslie Doctor of Medicine Fellow of the Royal College of Physicians (1760–1834), Ainslie was born at Kendal and educated at Charterhouse.
He graduated Bachelor in 1815, when he was Eighth Wrangler, and the same year was elected a Fellow of his college.
His name was entered at Trinity College, Cambridge, on 3 July 1810, but on 10 January 1811 he migrated to Pembroke, from where he matriculated in the Michaelmas term of 1811, gaining a scholarship. Also in 1818 he proceeded to the degree of Master of Arts and in 1828 was appointed Master of Pembroke College, later the same year becoming Vice-Chancellor of the University of Cambridge for the year. In 1829 the University made him a Doctor of Divinity.
He was again Vice-Chancellor in 1836 and remained Master of Pembroke until his death in 1870.
In 1837 Ainslie laid the foundation stone of the Fitzwilliam Museum. Their third son Aymer Ainslie (1841–1901), a mining engineer, was named after Aymer Valence, husband of Mary Valence, Countess of Pembroke, who in the 14th century had founded Marie Valence"s Hall, which grew into Pembroke College.
Ainslie wrote a life of the foundress. In succession, Ainslie and his predecessor Joseph Turner held the Mastership of Pembroke College for a total of eighty-six years, becoming the two longest-serving Masters.
Ainslie died at the Master"s Lodge, Pembroke College, on 9 January 1870, leaving an estate valued at some £12,000.