The main purpose of this legislation is to strengthen the integrity of federal elections by making it a serious crime for individuals who are unlawfully present in the United States to vote. This is intended to deter unauthorized voting and ensure that only eligible citizens participate in elections. Key provisions of the legislation include defining the act of voting in a federal election by an unlawfully present alien as an "aggravated felony." This classification carries severe legal consequences, including potential imprisonment.