Their teacher died, so they performed the most moving haka you'll ever see.

It was a show of respect and a powerful tribute to their teacher.

It’s a sight you’ll never forget: 1700 schoolboys performing the haka as a final farewell totheir maths and physical education teacher, who died in New Zealand last week.

It was a beautiful tribute.

Dawson Tamatea, 55, taught at Palmerston North Boys’ High School, on New Zealand’s North Island, for 30 years.

In a show of respect – and a powerful tribute – his students lined the school courtyard as his hearse rolled in and performed the country’s traditional dance. Watch it here:

Video via PNBHS

“This was a very emotional and powerful performance,” the school wrote when they uploaded the video onto YouTube. “We are extremely proud of our boys’ performance and we know that Mr Tamatea would be too.”

While many of us are used to seeing the haka performed as a war cry before a rugby union match, the dance is often used at cultural events and funerals to honour those who have passed away.

For more on must-see videos… 

WATCH: Couples describe each other to sketch artists. Fail miserably.

An epic battle of the sexes. In a car.

Watch Jessie J singing at the age of 15.