This is a confusing subject for most native speakers. Affect is a verb and effect is a noun. I copied the example below off of the web. I hope it is useful.
Imagine Ruby pushes Raphael into a pond. Ruby affects where Raphael is standing. Raphael being wet is the effect of Ruby’s irresistible urge to push him into a pond.