BELGRADE, Serbia — Workers from Fiat’s factory in Serbia have agreed to end their strike and return to work after more than two weeks, Serbia’s prime minister said Tuesday.

Ana Brnabic met with the striking workers in the central town of Kragujevac, where the Fiat factory is located. She said the government will organize talks between the workers’ union and the Fiat representatives on Wednesday in Belgrade.

“I will organize the talks and I will be present at the talks,” Brnabic said. “It is important for me to fulfill my promise to the workers and the unions that I will be there while we talk to Fiat.”

The workers earlier marched to Kragujevac City hall, and urged the president and government to intervene. They are demanding higher wages.

The Italian carmaker owns two-thirds of the local subsidiary, while the Serbian government owns the remainder.

Brnabic said the government can’t guarantee the outcome of the talks with Fiat.

Officials have warned the strike is hurting Serbia’s economy which relies heavily on foreign investors. The factory in Kragujevac once produced the boxy Yugo cars, which are generally remembered as being of a low quality.