Trinity Grammar School said Dr Michael Davies (pictured) tendered his resignation

The headmaster of an esteemed private school who was in charge when his popular deputy principal was fired by the school's council after he cut a student's hair has resigned.

Trinity Grammar School announced on Tuesday morning that Dr Michael Davies had tendered his resignation letter, saying he came to the decision after deep discussion with his family.

It is understood teaching and support staff at the school were informed of the decision at a hastily called meeting at 8am on Tuesday morning.

'Having successfully resolved some complex matters over recent weeks, I am now content that our hard work in recent weeks has helped the school return to a position where students and staff are enjoying the normal rhythm of school life,' Dr Davies said.

Deputy principal, Rohan Brown (left) was sacked by the school board in early March following an incident in which he gave a boy a haircut on school photo day (pictured)

Dr Davies had earlier been the subject of a no confidence vote by teachers, with 55 per cent voting against him, and he was also the subject of a town hall meeting, attended by about 1000 members of the school community, where concerns were raised over his leadership of the school.

The school has endured a turbulent three months after the deputy principal, Rohan Brown, was sacked by the school board in early March following an incident in which he gave a boy a haircut on school photo day.

Students, teachers and parents all showed support for Mr Brown, who had been with the school for three decades.

Students, teachers, and parents all showed support for Mr Brown (left), who had been with the school for three decades

A protest over the dismissal was held by students and an open letter disapproving the decision was signed by 50 former captains and vice captains.

Mr Brown was reinstated in April following an independent review conducted by a retired federal judge.

Parent Jo Slater told the Herald Sun the she was 'delighted by the news.'

'The boys are very pleased and we are all looking forward to continuing the year without distractions,' she said.

A stand in headmaster has been appointed for between six to eighteen months while a permanent replacement is sought.

'We have accepted Michael's resignation but are sorry to see him leave,' Council chairman Robert Utter said in the statement announcing Dr Davies resignation.

'On behalf of School Council, I wish Michael and his family all the very best and thank them for their service to and care for our school community,' he said.

Students were among those who spoke up in their disapproval of the sacking of Rohan Brown