 Thence he was taken to Stirling Castle, and not released until 4 August 1693 on condition of a bond to leave the kingdom under penalty of £5000.He joined the exiled King at St Germain, by whom he was, on 19 August 1696, appointed Governor to the young Prince of Wales, and by whose testamentary directions he was, before 17 October 1701, created by King James III and VIII, Duke of Perth, Marquess of Drummond, Earl of Stobhall, Viscount Cargill, and Baron Concraig, all proclaimed as in the Peerage of Scotland (but in reality in the Jacobite peerage), with remainder to his heirs-male whatsoever.In 1701 he was recognised as a Duke in France by King Louis XIV.