FORTALEZA, Brazil -- The historic wave of protests that has swept across Brazil in recent days has gained some important allies -- the players of the Brazilian national football team.

Brazil is hosting the Confederations Cup, a tournament of continental champions which serves as a warm-up for next year's World Cup, but the Brazilian players' focus has turned to the demonstrations which have taken over a country fighting for improvements in basic services such as public transportation, schools and hospitals.

The Brazilian players had been trying to avoid the subject, but it became impossible not to talk about it after hundreds of thousands of countrymen took to the streets to show their displeasure with politicians, authorities and local government.

"After seeing the people on the streets claiming for improvements, it makes me feel like joining them," Brazil striker Hulk said. "They are doing the right thing, what they are saying makes sense and we have to hear them. Brazil needs to improve, we all know that."

Nearly 240,000 people marched in 10 Brazilian cities on Monday in protests that are turning into the most significant in Brazil since the end of the country's 1964-85 military dictatorship, when crowds rallied to demand the return of democracy. It also reminded of the early 1990s nationwide movement to call for the impeachment of then president Fernando Collor de Melo following corruption allegations and unpopular economic measures.

"The people have the right to express their opinions and to protest when they are not happy with what is happening in their country. That's the only way to call attention to what is wrong," said Brazil defender David Luiz, who plays for Chelsea in England. "I don't live in Brazil but I love my country. The Brazilians love their country and that's why these protests are happening."

The players got behind the demonstrators even though part of the complaints is directly related to the high costs of hosting the Confederations Cup and the World Cup in a country in dire need of better public services to its population in general.

An organization calling for lower bus fares initiated the protesting last week, but demonstrations have expanded since, as people are weighed down by high taxes and high prices while getting low-quality services and a system of government infected with corruption and inefficiency.

"It's sad that it got to a point where we need to go to the streets to demand for better conditions," Brazil star Neymar wrote on his social media pages before the team's match against Mexico on Wednesday in the northeastern city of Fortaleza. "The only way I can represent and defend the country is by playing football, and from now on I'll walk on the field inspired by this movement."

Protesters have tried to use the Confederations Cup to attract attention to their causes, organizing several demonstrations before matches in the six host cites.

Before Wednesday's match, police clashed with protesters trying to get near the stadium in Fortaleza and at least four police officers and a demonstrator were injured. Fans faced difficulties getting into the venue but the match was not disrupted.

The protests had also turned violent in Brasilia, Rio de Janeiro and Belo Horizonte, with police using rubber bullets and tear gas to keep the demonstrators from disrupting fans trying to get to the matches. Authorities reported arrests and minor injuries in the three major cities.

"The only thing we won't support is violence," David Luiz said. "I'm in favour of the right to express your opinion, but only if it's done peacefully."

The players had been avoiding the protests in news conferences, apparently trying to keep the issue from distracting the team's preparations, but some had already gone to social media sites to offer their opinion.

"I'm in favour of the protests as long as they are peaceful," Brazil striker Fred said on Facebook. "I'm very proud to see the people fighting to improve public transportation, health services and so many other things."

Barcelona defender Daniel Alves and Bayern Munich defender Dante also expressed their support to the demonstrations.

Coach Luiz Felipe Scolari had been saying that he was only worried about preparing his team for the football tournament and would not comment on anything else, but on Tuesday he talked about the protests for the first time, praising his players for giving their support to the movement but saying that there is little the national team can add.

"Our job is to give fans motivation to celebrate by doing well on the field," he said. "It's all we can do."

Former Brazil player Juninho, a member of the 2006 World Cup squad, suggested on his Facebook page that players sing the national anthem with their backs turned to the Brazilian flag to show that football is not more important than the Brazilian people. Others said that the fans should turn their backs to the field when the anthem is played.

Neither happened before Brazil's match with Mexico on Wednesday.

15:41ET 19-06-13