Members of Wales' largest teaching union have accepted a new Welsh government pay offer following strike action, bringing an end to the dispute.
The National Education Union [NEU] said teachers and support staff have agreed to an overall pay rise of 8% this year.
The latest offer was backed by 73% of NEU members who responded to the ballot.
Education Minister Jeremy Miles said the agreement was "good news for pupils, parents and teachers"
NEU Wales secretary David Evans said: "Our members quite clearly didn't want that disruption to happen but we did get significant support from parents and from the communities.
"If those strike days had not happened, we would not have got around the table with the [Welsh] government to discuss this particular offer.
"There were no proposals in respect of any talks until the NEU indicated it was prepared to take strike action.