The primary teachers' union has agreed to take part in a flagship education programme it had previously opposed.
The $359 million Communities of Learning programme was announced in 2014 and involves paying some teachers and principals more to visit schools other than their own to improve performance.
Education Minister Hekia Parata says the NZEI will be taking details of the agreement to its members this week.
The Post-Primary Teachers Association negotiated an agreement earlier this year.
"We know that the quality of teaching and leadership are the most important in-school factors when it comes to education," Ms Parata said today.
"It's great that both primary and secondary unions will be involved in the work to make this happen."
NZEI president Louise Green says the agreement includes a leadership role and recognition of a range of leadership expertise.
She says an important change in the negotiated agreement is that it includes early childhood education.