Later, as a general in the Scottish army, Claverhouse remained loyal to King James VII of Scotland after the Revolution of 1688. He rallied those Highland clans loyal to the Jacobite cause and, although he lost his life in the battle, led them to victory at Killiecrankie. This first Jacobite rising was unsuccessful, but Claverhouse became a Jacobite hero, acquiring his second soubriquet "Bonnie Dundee".