What is the basic law that governs immigration?

The Federal Immigration and Nationality Act provides the basis for U.S. immigration law.