John Erskine, 2nd earl of Mar (born c. 1558—died Dec. 14, 1634, Stirling, Stirling, Scot.) was a Scottish politician and friend of King James VI; he helped James govern Scotland both before and after James ascended the English throne (as James I) in 1603.
Erskine inherited the earldom of Mar in 1572 upon the death of his father, John, 1st (and 18th) Earl of Mar, who had become regent for the five-year-old James VI in 1571. Mar grew up with James at Stirling Castle, and in 1578 he made himself James’s guardian. When his influence over the young king was challenged by Esmé Stewart, 1st Duke of Lennox, and James Stewart, Earl of Arran, Mar and several other lords seized James at Perth and took him to Ruthven Castle, Inverness. Ten months later, in June 1583, the king escaped. Arran then became ascendant; and in 1584 Mar, after a brief seizure of Stirling Castle in the hope of prompting English intervention, was forced to flee to England, where he received the backing of Queen Elizabeth I. In November 1585 Mar returned to Scotland, banished Arran, and was reconciled with James, becoming one of the leading royal ministers. James made him guardian for his son, Prince Henry (1594–1612), in 1594.
After the death of Elizabeth and the accession of James to the English throne, Mar continued to exercise great influence in Scottish affairs. He served as treasurer of Scotland from 1616 to 1630.