If you're in the United States in a temporary immigration status (technically known as “non-immigrant status”) when you win the Diversity Visa lottery, you'll apply for a green card through United States Citizenship and Immigration Services (USCIS) by filing Form I-485.