Police in the state of Bahia in north-eastern Brazil say they have voted to end a two-day strike over pay after accepting an improved government offer.
They said they accepted salary increases ranging from 25% to 60%, according to Brazil’s G1 news portal.
On Wednesday, elite police units and armed soldiers were deployed to the state to restore order amid a hike in the number of murders and other crimes.
Shops were also looted in the capital, Salvador, following the walkout.
Brazil’s third-largest city is due to host six matches during the football World Cup, which begins in June.
Following their vote to end the walkout, the protesting officers were seen on local TV celebrating what they said was a “victory”.
Their decision came a day after a federal judge ruled the dispute illegal and ordered the striking officers to return to work or their union would face fines.
State officials said 39 people have been killed in and around Salvador since the strike was announced, a much higher figure than normal.
The labour dispute also prompted car robberies and looters to pillage supermarkets, electronics stores and other shops, as police stayed away in defiance of the court order.
Many shops, schools and universities remained closed, and fewer buses circulated in Salvador after drivers refused to go to work for fear of being attacked.