The protesters also tried to catch hold of Masood, who is the younger brother of Jamiat-Ulema-e-Hind chief Maulana Mehmood Madani. Police force was deployed in the court premises and other nearby areas.
Deputy Superintendent of Police Sanjay Singh said Masood was brought to the Deoband court for an appearance in the rape case. Some members of Hindu right wing groups tried to grab Masood and raised slogans against him while pelting stones.
Masood, who was a minister in the Uttarakhand government, is accused of raping a woman on the pretext of giving her treatment.