In Oedipus Rex, the protagonist's hamartia (tragic flaw) is hubris—excessive pride and confidence in his own intellect and agency. This blinds him to the truth and drives him toward his doom.
Oedipus's hubris makes his downfall inevitable and self-inflicted. The play becomes a cautionary tale: human reason, however brilliant, cannot outmaneuver fate or the gods. True wisdom lies in recognizing one's limits.