Last updated on .From the section 2014 Fifa World Cup

Luiz Felipe Scolari's Brazil side finished fourth in the 2014 World Cup

Brazil coach Luiz Felipe Scolari has resigned, the country's football federation (CBF) has confirmed.

Scolari, 65, won the tournament in 2002 but the hosts could only finish fourth at this year's event.

Brazil were thrashed 7-1 by Germany in the semi-finals then lost 3-0 to the Netherlands in the play-off.

World Cup moments: Germany destroy Brazil

"Luiz Felipe Scolari and his fellow coaching staff surrendered their positions to the board," the CBF confirmed in a statement.

"Scolari and his entire coaching staff deserve our respect and gratitude.

"They were responsible for returning to the Brazilian people your love for the national team, despite not having achieved our greatest goal."

Scolari's contract was set to expire after the tournament, but the CBF vice president Marco Polo del Nero last week offered the manager his full backing following the humiliating last-four defeat by Germany.

However, Scolari himself had offered no assurances about his position in the wake of what he called "the worst day of my life".

Analysis Tim Vickery BBC Sport I'm not sure how much he has quit and how much he has been pushed but from the minute that fifth Germany goal went before the half-hour mark, he was already the ex-coach of Brazil. It's impossible to preside over an extraordinary, historic humiliation of that magnitude and carry on as coach of Brazil.

Scolari first took over the Brazil side in 2001 and guided them to World Cup success a year later, beating Germany 2-0 in the 2002 final in Yokohama, Japan.

But after spells in charge of Portugal, Premier League side Chelsea, Bunyodkor of Uzbekistan and Brazilian club Palmeiras, he resumed control of the national team in 2012.

Brazil hosted and won the Confederations Cup in 2013, beating Spain 3-0 in the final, and were favourites to win a sixth World Cup.

They finished top of their group after two wins and a draw from their three matches, before edging past Chile on penalties in the last 16.

They beat Colombia 2-1 in the quarter-finals, but lost top goalscorer Neymar to a spine injury and captain Thiago Silva to suspension.

Scolari with Thiago Silva and Brazil president Dilma Rousseff after the 2013 Confederations Cup win

In the semi-final, Brazil were 5-0 down to Joachim Low's Germany after only 29 minutes, before losing 7-1 - their joint-heaviest loss ever and first home competitive defeat for 39 years.

Vice president Del Nero is scheduled to take over from CBF president Jose Maria Marin next year, which could mean a delay in the naming of a successor to Scolari - Brazil Under-23 coach Alexandre Gallo has been suggested as an interim caretaker.

Defeat worst day of my life - Scolari

Those expected to be in contention for the full-time job include former Corinthians boss Tite, Muricy Ramalho of Sao Paulo and ex-Brazil boss Vanderlei Luxemburgo - all of whom were in the running after Scolari's predecessor, Mano Menezes, was sacked.

Bayern Munich's Spanish coach Pep Guardiola was linked with the job before taking charge of the German champions, but Brazil have never appointed a foreign manager.

For the best of BBC Sport's in-depth content and analysis, go to our features and video page.