King Edward I of England fought the Scots to punish King John Balliol for not being an ally against France with England.

Edward was furious about the treaty between Scotland and France. In 1296 he marched a large army into Scotland and beat a Scottish army at the Battle of Dunbar. John surrendered. To punish him, Edward stripped John of his royal status – he was no longer king!

Source