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.