The pay dispute at Tunnock's bakery, where Caramel wafers and Teacakes are made, has been ended with agreement by staff to a third pay offer.
More than 500 workers at the factory in Uddingston, Lanarkshire, are to have a 2.5% increase backdated to the start of July, followed by a 2.5% increase from next July.
The offer was accepted by a "significant majority".
This follows strikes by more than 300 members by Unite union members.
They stopped work on two days in September in protest at a 1% pay increase.
They also rejected a revised offer of 2% and threatened to step up their action.
Commenting on the deal, managing director Boyd Tunnock said: "The management team and I are pleased that a pay agreement has been reached.
"Our ongoing investment in the business and our staff equips us well for the future. From the Caribbean to Kuwait, our products are exported to over 30 countries covering six continents.
"We look forward to continuing to expand our presence in new markets at home and abroad."