The Keith Medal is a prize awarded by the Royal Society of Edinburgh, Scotland's national academy, for a scientific paper published in the society's scientific journals, preference being given to a paper containing a discovery, either in mathematics or earth sciences.The Medal was inaugurated in 1827 as a result of a gift from Alexander Keith of Dunottar, the first Treasurer of the Society.