The Gentle Shepherd is a pastoral comedy by Allan Ramsay. It was first published in 1725 and dedicated to Susanna Montgomery, Lady Eglinton, to whom Ramsay gifted the original manuscript.
The play has some happy descriptive scenes and is a pleasant delineation of rustic manners in the countryside of the Scottish Lowlands in the 18th century. The backdrop is believed to have been inspired by the Penicuik area some eight miles south west of Edinburgh where Ramsay was frequently the guest of his patron Sir John Clerk of Penicuik at Penicuik House.