In late February 1402, while travelling officially to St Andrews, David was arrested just outside the city at Strathtyrum in a sting operation which had been arranged by Albany, at that time in complicit alliance with David's brother-in-law, Archibald, the fourth Earl of Douglas, who was offended with Rothesay for his unfaithfulness to his wife, the sister of Douglas. (David's father-in-law, the highly influential third Earl, had died two years before, in 1400.) The pretext for David's arrest was that the three-year period of his lieutenancy had expired. He was initially held captive in St Andrews Castle, and soon afterwards taken to Falkland Palace, Albany's residence in Fife. According to Bower, the prince spent the journey hooded and mounted backwards on a mule. At Falkland David remained a prisoner and shortly died there, reputedly of starvation.