These consist of four laws passed by the Federalist Congress and signed by President Adams in 1798: the Naturalization Act, which increased the waiting period for an immigrant to become a citizen from 5 to 14 years; the Alien Act, which empowered the president to arrest and deport dangerous aliens; the Alien Enemy Act, which allowed for the arrest and deportation of citizens of countries at was with the US; and the Sedition Act, which made it illegal to publish defamatory statements about the federal government or its officials. The first 3 were enacted in response to the XYZ Affair, and were aimed at French and Irish immigrants, who were considered subversives. The Sedition Act was an attempt to stifle Democratic-Republican opposition, although only 25 people were ever arrested, and only 10 convicted, under the law.