The Brazilian Football Confederation (CBF) sacked Fernando Diniz as coach of the men's national team Friday, a source there said, after a string of lackluster results for the "Selecao" in World Cup qualifying.

Fans had hoped Diniz, 49, who also coaches Rio de Janeiro club Fluminense, would restore the thrilling "samba football" that made the five-time world champions famous.

But since taking the job in July, he had struggled to deliver, with Brazil currently sixth place in 2026 World Cup qualifiers, the last automatic qualifying spot from South America.

The decision came a day after a Supreme Court judge ordered the reinstatement of the CBF's president, Ednaldo Rodrigues, who had been ousted by a lower-court ruling on December 7 that found irregularities in his 2022 election.

FIFA and the South American Football Confederation (CONMEBOL) had refused to accept Rodrigues's ouster, warning the CBF it could be barred from international competitions if it was allowing external interference in its affairs.

Rodrigues, the first black president in CBF history, had been leading negotiations to sign Real Madrid boss Carlo Ancelotti as coach.

That bid fell apart on December 29 when Ancelotti extended his contract with Real Madrid.

Diniz presided over just two wins in his six months coaching Brazil, and had racked up a humiliating three straight losses in World Cup qualifiers, including at home to arch-rivals Argentina in November.

Brazilian media reports suggested his successor could be Dorival Junior, current coach of Sao Paulo.