Ripon replaced its old textiles industry with one for the manufacture of spurs during the 16th century. They were so widely known that they gave rise to the proverb "as true steel as Ripon Rowels". At the time, spurs did not just serve as functional riding accessories, they were also fashionable; an expensive pair was made for King James I when he stayed at Ripon in 1617. It was James who granted Ripon a Royal Charter in 1604 and created the first Mayor of Ripon. After the Bishops' Wars in Scotland, a treaty was signed at Ripon in 1640 to stop the conflict between Charles I and the Scottish Covenanters. Although Ripon was not in the main line of fighting which was to the east, it remained loyal and royalist during the English Civil War. There was an incident in 1643, when parliamentarian forces under Thomas Mauleverer entered Ripon and damaged the Minster, but John Mallory and the royalist forces soon settled the matter after a skirmish in the Market Place. The royalists were eventually defeated in the Civil War and Charles I spent two nights as a prisoner in Ripon. Oliver Cromwell visited the city twice on his way to battle, once on the way to the Preston and also on the way to the Battle of Worcester.