The Sedition Act of 1798 was a law enacted by the United States government that made it illegal to criticize or speak out against the federal government, particularly the President. This act was passed during a time of heightened tensions between political parties and aimed to suppress dissenting voices.