What does the word afforded mean?

The word means "given" or "allowed", using the archaic meaning of afford (to give).

Example : "The defendant was afforded an opportunity to state his defense."