The Alien and Sedition Acts of 1798 were a set of four laws passed by the Federalist-controlled Congress aimed at restricting the activities of foreign residents and limiting dissent against the government. These acts reflected the political tensions of the time, particularly in the context of growing fears of war with France and concerns over the stability of the young republic.