After the extinction of the senior line of the Scottish royal house in 1290, when the legitimate line of William the Lion of Scotland ended, David's descendants were the prime candidates for the throne.