Answer
The Act against Blasphemy, enacted in 1695, served as the legal basis for the prosecution of Thomas Aikenhead, a student at the University of Edinburgh. This act sought to punish individuals for expressing heretical or blasphemous views, aiming to preserve religious orthodoxy and maintain societal order. Aikenhead's alleged offenses included uttering profanities against the Holy Trinity and questioning the divinity of Jesus Christ.