The difference between these two words is all about coming and going. When you immigrate, you’re coming to a new country. When you emigrate, you’re leaving your home country.
Immigrate: to move into a country from another one to stay permanently.
Emigrate: to leave the country in which one lives, especially one’s native country, to reside elsewhere.