Ottoman sultans founded the Imperial Council in order to institutionalise the ruling system. It was named as the Divan. The head of the Divan was the Grand Vizier. They had their meetings for four days of the week and discussed the state matters. The council had also the function of the appeal court.