The main purpose of this legislation, titled the "No War Against Iran Act," is to prevent the U.S. government from using military force against Iran without explicit congressional approval. The bill emphasizes the constitutional authority of Congress to declare war and aims to ensure that any military action against Iran is authorized by Congress, rather than being based on previous military authorizations.