Form 1040-NR is used by nonresident aliens engaged in trade or business in the United States, or those with U.S. source income who need to file a tax return. It determines the tax liability for income effectively connected with a U.S. trade or business.