Oedipus' fatal flaw is hubris

Academics suggest that Oedipus' fatal flaw is hubris, or excessive pride. In what ways does this affect the play and how it ends?