Daley Blind, left, scores Netherlands’ second goal in the 17th minute. “The most beautiful was our resilience,” said Georginio Wijnaldum, who had the last goal.

Hassan Ammar / The Associated Press

BRASILIA, Brazil — When it was all over, it was the Netherlands receiving a standing ovation from the Brazilian crowd.

Brazil walked off the field to boos, after another demoralizing loss to end its home World Cup.

The Netherlands’ remarkable campaign ended on a high note after Robin van Persie and Daley Blind scored early goals to help give the team a 3-0 win over Brazil in the third-place game on Saturday.

“It’s a terrible feeling, I don’t know what to say,” Brazil’s Oscar said. “After a huge loss to Germany, today we tried our best from the beginning to win third place but it wasn’t our day. We have to see what went wrong so we can improve for the future.”

The Netherlands finishes a World Cup unbeaten in regular play for the first time, having lost to Argentina on penalties in the semifinals. After finishing runner-up in 2010, the third place is the best position for the Dutch squad since it lost the final in 1974 and 1978.

The Brazilian fans loudly greeted the Dutch players after they received the third-place medals, applauding on their feet.

“I would like to thank all people in Brazil for their great support,” Dutch forward Arjen Robben said. “For us it was the best way to end this tournament.”

The loss added to Brazil’s frustration at home, following the disastrous 7-1 defeat to Germany. After Saturday’s final whistle, the team was loudly booed by the nearly 70,000 fans that attended the match at the National Stadium in Brasilia. Many had already left even before the late third goal by the Dutch. It’s the first time since 1940 that Brazil lost two consecutive competitive games on home soil.

Brazil conceded a team-record 14 goals in the tournament, 10 in its last two games. The previous worst had been 11 goals in the 1938 World Cup.

“I don’t think we played that bad,” said Brazil coach Luiz Felipe Scolari, who made six changes after the Germany loss. “The players fought hard from the start. They created chances, so it’s difficult to lose 3-0.”

Van Persie converted a penalty kick three minutes into the match after Robben was brought down by Brazil captain Thiago Silva on the edge of the area. Blind added to the lead in the 17th with a shot from near the penalty spot after defender David Luiz made a mistake while trying to clear a cross in front of the goal. Georginio Wijnaldum rounded off the win in injury time with a shot inside the near post.

Brazil looked lost from the start, making many of the same defensive mistakes that marked the historic defeat to the Germans.

“It’s frustrating,” Silva said. “We didn’t deserve to have it end like this. But unfortunately it’s football. I have to apologize to our people. The fans ... booed in the end, but it was normal. They have feelings too.”

It was the fourth time Brazil played in a third-place match. It beat Sweden in 1938 and Italy in 1978, and the only other loss had come against Poland in 1974.

The Dutch had played in the third-place match one other time. It fell to Croatia 2-1 in 1998 after being beaten by Brazil in the semis.