Edward I of England
The heir to the throne was his infant granddaughter Margaret. Unfortunately, Alexander died in 1286, followed by Margaret in 1290. This left Scotland without a king, which started all the problems.