	Keir was born in Stirlingshire, Scotland, in 1735 as the eighteenth child of John and Magdaline Keir. James attended the Royal High School, Edinburgh, and studied medicine at the University of Edinburgh where he met and formed a lasting friendship with Erasmus Darwin.