Oedipus and Religion

What role did Fate play?

Did Oedipus have any control over his fate?

Could Oedipus have actually controlled his fate with different choices, or was he destined to be a lesson for humanity from the gods?