This law, passed after the United States entered WWI, imposed sentences of up to twenty years on anyone found guilty of aiding the enemy, obstructing recruitment of soldiers, or encouraging disloyalty. It allowed the postmaster general to remove from the mail any materials that incited treason or insurrection.