The religious intellectual group of Muslims was collectively referred as Ulema.
People of this group managed religious matters and interpreted religious regulations for Sultan.
They were also in charge of judicial matters and worked as Qazis at various levels.
This group used to pressurize the sultan to run the Sultanate as per the religious laws of Islam.
Sultan like Alauddin Khalji could ignore the opinions of Ulema on a number of issues but some followed their line.