A judge praised police and community leaders as he jailed six men for a total of 19 years over a "paranoid" hate campaign.
Judge Nicholas Dean spoke out after the defendants, all but one of whom are Sikh, pleaded guilty to a series of offences including inciting racial hatred, attacking two men in a car and shooting another victim.
He commended the calming influence of leaders of the Muslim and Sikh communities during a time of tension.
The judge also praised the police for their hard work and sensitive handling of the case.
He said: "I would like to commend particularly the hard work and dedication of the investigating officer Det Constable Beverley Toon in this case."
Parwinder Baning (21), of Kitchener Road, Crown Hills, pleaded guilty to conspiracy to commit assault, actual bodily harm, possessing an imitation firearm, possessing a bladed article and importing an illegal haul of weapons. He was jailed for seven and a half years.
Mehul Lodhia (24), of Lindsay Road, Rowley Fields, pleaded guilty to conspiracy to commit assault and importing illegal knuckle-dusters. He was jailed for three years.
Damanpreet Singh (19), of Collingham Road, off Narborough Road, Rowley Fields, pleaded guilty to affray, inciting racial hatred and conspiracy to commit assault and actual bodily harm. He was jailed for four years.
Harjinder Athwal (24), of Netherhall Road, Thurnby Lodge, pleaded guilty to inciting racial hatred, conspiracy to commit assault and actual bodily harm. He was jailed for two and a half years.
Amanpreet Singh (25), also of Collingham Road, pleaded guilty to affray. He was jailed for two years.
Satinderbir Singh (20), of Woodborough Road, Crown Hills, pleaded guilty to inciting racial hatred. He was jailed for 15 months.
Leicester Crown Court heard how a car containing two Muslim men was attacked by a group wielding hockey sticks, chains and other weapons in June 2013.
The two men escaped injury in the incident, in East Park Road, Evington.
A few weeks later, a Facebook thread was set up by one of the defendants peddling vehemently anti-Muslim comments.
A website account was also set up expressly to lure unsuspecting Muslim men to contact a ficticious15-year-old Sikh girl. Two men were tricked into making contact. One of them, a "vulnerable" man, who was a Sikh, was conned into sending the 'girl' an indecent picture of himself.
The image was sent to his employers to humiliate him.
Another man was lured to a rendezvous with the 'girl' where he was attacked with weapons, and shot with a BB gun by Parwinder Baning.
Judge Nicholas Dean said: "These offences took place against a backdrop of tension in 2013 following the revenge attack by Sikh men on a Muslim restaurant after the grooming of a Sikh girl by a group of Muslim men."
He said the affray in East Park Road was sparked, in broad daylight, by brothers Amanpreet and Damanpreet Singh, who swore at the Muslim occupants of the car and then led a group of men in the attack.
The judge said that in August 2013, Satinderbir Singh set up the Facebook thread filled with anti-Muslim comments which were "vicious and perverse and absurd".
He said: "They played on myth, exaggerations and paranoia."
Four of the other defendants posted messages on the thread.
The judge said all of the defendants received time off their sentences by pleading guilty.
After the case, Suleman Nagdi, public relations officer for the Federation of Muslim Organisations, said: "It is absolutely imperative that faith leaders from all sides create a calm and cohesive society.
"The incident was a rare one - it was one that does not normally happen in Leicester and we hope it will never happen gain.
"It's important that leaders of both sides are calm and understanding and show friendship towards each other. It is the way forward for the whole nation."
Resham Singh Sandhu, chairman of the Sikh Welfare and Cultural Society and vice-president of Leicestershire Faith Forum, said that shortly after the incident the faith leaders from both communities met with the police to help calm the situation.
He added that faith leaders work very hard to maintain goof relationships between different religious groups in Leicester.
"Relationships have been very very good for years, but sometimes elements disturb this cohesion.
"These issues are not always locally based, they are from the outside world, we try to control it as much as possible."
![Sikh and Muslim community leaders praised as six Leicester men are jailed for Sikh and Muslim community leaders praised as six Leicester men are jailed for]()