the acts were designed by Federalists to limit the power of the opposition Republican Party, but enforcement ended after Thomas Jefferson was elected president in 1800. The Alien and Sedition Acts were passed by Congress in 1798 in preparation for an anticipated war with France.