When James retreated from Salisbury before William, the people, in the absence of the troops, whom Perth had disbanded, rose in Edinburgh. Perth departed on 8 December under a strong escort to his seat of Drummond Castle, Perthshire. Finding himself unsafe there, he fled in disguise over the Ochil mountains to Burntisland, where he gained a vessel about to sail to France. He had, however, been recognised, and a boatful of watermen from Kirkcaldy pursued the vessel, which, as it was almost a dead calm, was overtaken at the mouth of the Forth. Perth was dragged from the hold in woman's clothes, stripped of all he had, and thrown into the common prison of Kirkcaldy. 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.