What is the difference between an immigrant and a emigrant?

Immigrants arrive in a country and wish to settle there. Emigrants leave a country to become immigants in some other country.