Who was in charge of Ottoman society and government?

A. The sultan
B. The harem
C. The military leaders
D. The religious leaders