What is the difference between the commonly confused words affect and effect

An explanation of the difference between affect and effect