61-year-old Claudia Sheinbaum, the ruling party candidate and climate scientist, is expected to win and become the country's first female president.
Cities were plunged into darkness as scorching temperatures strained the national energy grid.