Egypt coach Javier Aguirre has become the first casualty of the 2019 Africa Cup of Nations, sacked just hours after the hosts had been bundled out by South Africa in the round of 16.
Egypt lost 1-0 on Saturday after an 85th-minute goal from Thembinkosi Lorch at the end of a lacklustre display in which their talisman Mohamed Salah looked out of sorts and they produced few goal-scoring chances.
Egypt Football Association president Hany Abo Rida announced the firing of the Mexican coach, and his own resignation, less than three hours after the game as a stunned host nation digested the defeat.
Abo Rida also called on his board members to step down, calling his resignation a "moral obligation, although the football association had given the national team full material and moral support".
Aguirre told reporters after the defeat that he took sole responsibility but was proud of all of his players.
"The game was open and saw many chances," he said.
"The only difference was that South Africa managed to score."
Aguirre, 60, departs after less than a year in the job but not before setting a unique record by coaching at four different continental championships.
He won the Concacaf Gold Cup with his native Mexico in 2009, took them to the final of the Copa America and was in charge of Japan four years ago when they went out in the Asian Cup quarter-finals.
South Africa progress to a quarter-final against Nigeria, who had earlier beaten defending champions Cameroon 3-2 in a wild last-16 game.
The Super Eagles scored first before Cameroon replied with two goals in three minutes at the end of the first half to lead 2-1.
Nigeria then did the same to go ahead again with two goals in a three-minute spell after halftime.
Odion Ighalo scored two of Nigeria's goals and Alex Iwobi snatched the winner in the 66th minute to put the 2013 champions into the last eight.
Cameroon's exit is a major disappointment for the high-profile coaching team of former Netherlands internationals Clarence Seedorf and Patrick Kluivert, who had been appointed to lead the team's title defence.
Benin stunned Morocco on penalties and Senegal beat Uganda 1-0 in Friday's last-16 clashes.
Surprise packages Madagascar take on DR Congo and Algeria face Guinea in Sunday's matches.