The origins of the University of Glasgow's links with the military can be traced back to the Jacobite risings of 1715 and 1745, when companies of Militia were raised to defend the pro-Hanoverian University and the City of Glasgow against the absolutist Highland Jacobites. In 1880s, Glasgow professors such as William John Macquorn Rankine and students formed two infantry companies as part of the local 1st Lanarkshire (Glasgow 1st Western) Rifle Volunteers. This unit later became the 5th Battalion of the Cameronians (Scottish Rifles), based at West Princes Street drill hall in the Woodlands area of Glasgow.