Police have arrested over 300 people involved in the violence, said local TV reports.
Meanwhile, Indian Home Minister Rajnath Singh expressed anguish over the loss of lives and assured all necessary help to the state government.
Among the dead were 19 civilians, while Superintendent of Police Mukul Dwivedi and another officer Farah, were killed, said police.
The violence had erupted when police were trying to evict some 3,000 illegal occupants, believed to be from a religious sector called Azad Bharat Vidhik Vaicharik Kranti Satyagrahi, from Jawahar Bagh, at the order of a local court.
More about: