Affect Is a Verb
Affect and effect are examples of homonyms
...words that may sound alike or have similar spellings, but have very different meanings.
Affect is usually used as a verb. It is an action word that means to produce a change in or influence something.
Example: The dog's death will affect his owners.