At least 7 people, besides a few police personnel, were injured in the incidents but it was not immediately clear if the two persons lost their lives following the clashes in the Old City area or in police firing.
Police have enforced prohibitory orders in the troubled areas.
"At least two are dead in the incidents. We are awaiting the autopsy report (to know whether they are killed in firing or in clashes)...but there has been police firing, there is no doubt about that," Andhra Pradesh Additional Director General of Police (Law and Order) V S K Kaumudi told PTI.
Large number of security forces have been deployed, including three companies of rapid action force, two companies of Andhra Pradesh Special Police, in addition to city police personnel, in the troubled areas, Kaumudi said.
City Police Commissioner Anurag Sharma told reporters: “There was an incident of rioting between two groups and right now the situation is totally under control. We are ensuring that it does not have any other and further repercussions," he said.
"We are ensuring that there is peace and tranquillity in the city. Patrolling vehicles are on the move to maintain law and order. We will ensure that no (such) further incidents take place," he said.
Tension gripped parts of Old City following clashes between the two communities following which additional forces were rushed there.
Some members of the two communities allegedly indulged in pelting each other with stones and also attacked vehicles and houses. There were also reports of arson.
State Governor E S L Narasimhan reviewed the law and order situation at a meeting with senior police officials.
Photograph: SnapsIndia
Bandhan appoints Deloitte as management consultant
How to make Varanasi fit for the 21st century
Review: Nee Enge En Anbe is no Kahaani
Hindustan Motors scouting for investors to revive Uttarpara plant
Dissolve Andhra Pradesh assembly: Solicitor general