 When just fourteen he went to school at Clarencefield Academy in Dumfriesshire, and during his stay there of six years, under the rector, Mr. Thomas Fergusson, attained a competent knowledge of Latin, Greek, and French.In 1812 he became a medical student at Edinburgh University, and took his M.D.degree with credit in 1818.