The town grew in size as a settlement when the fort was constructed to control the population after Oliver Cromwell's invasion during the Wars of the Three Kingdoms, and then to suppress the Jacobite uprisings of the 18th century.