Thomas Jefferson opposed the alien and sedition Acts passed by the Federalist Congress, because towards the elections of 1796 the candidate that won the elections was the Federalist John Adams and his party.
Thsy were meant to punish Massachusetts for the Boston tea party and warn the other colonies of Britain's power