affect means to change something.
effect means to bring something about.
because they often sound the same they are confused.