The Ogilvies descend from Gilbert, son of the 1st Earl of Angus, who had a charter to the barony of Ogilvie in Forfarshire in the 12th century. The founder of the Airlie branch was Sir Walter Ogilvie of Lintrathan, whose son held the lands of Airlie by a charter of 1459. The 8th Lord of Ogilvie was elevated to Earl of Airlie in 1639. The Ogilvies of Airlie were loyal to the Royal House of Stewart and suffered in their cause. They took an active part in the Jacobite Risings of 1715 and 1745. Airlie was attainted, but a pardon was granted in 1778. The Earldom was restored in 1826.