Effect is to cause or change something, to add something to make something, to create something.
Ex: The effects of smoking is dangerous to your health.
while
Affect is an aftermath of what happens, influences, the result, the impact.
Ex: The wildfires in Canada can affect the lives of the animals, as well as the tourist attraction.