Even after this was declared, there was still strong support for James in Scotland. John Graham of Clevehouse, the Viscount of Dundee, raised an army and won a victory at Killiecrankie on 27 July. But Dundee's army suffered great losses, and he was seriously wounded at the start of the battle. This stopped the only effective resistance to William, and the revolt was quickly crushed. The next month, there was a great defeat at the Battle of Dunkeld.