Fourteen people have been jailed for a total of more than 70 years for their part in a riot that saw petrol bombs thrown at a police station in Nottingham.
Three police officers and three community service officers were inside Canning Circus police station when it came under attack last August.
Judge Michael Stoke QC, Recorder of Nottingham, said: "There can be no doubt about it: this was mob violence of an extreme nature.
"In short, a calculated defiance of the criminal law and a deliberate attack on the police.
"The numbers involved, far more numerous than those apprehended, must have caused real fear to decent citizens who witnessed these events or whose property sustained damage during the course of them."
Ten of the men sentenced were convicted of rioting while the other four, including two 16-year-olds, were jailed for violent disorder.
Curtis Dejean, 19; Lance Francis, 25; Reiss Wilson, 21; Harrison McCalla, 21; Antany Edwards, 24; Ashton Alexander, 19; Ricardo Cotteral, 23; Callum Powell, 20; Shaudrie Robinson, 22; Gregory Coleman, Lucas Stapleton, both 18; and Bobby Muers, 18; along with 16-year-olds Kaiden Howell and Marcus Wynter, were all sentenced at Nottingham Crown Court.
The six-week trial at Nottingham Crown Court heard witnesses describe the scene as a "war zone", seeing petrol bombs thrown at the police station during an "organised and planned attack".
Petrol bombs were also thrown at other passing vehicles, including a bus.
Judge Stokes said: "The use of such unstable weapons in a riot situation, aimed as they were principally at a police station and those inside it, created a substantial risk to life and limb."
Commenting after the sentencing, Detective Chief Inspector Rob Griffin, who led the investigation, said: "The sentences handed out to these individuals reflect the severity of what they did last August.
"They joined together, armed with weapons, sticks and petrol bombs, with the common intention of targeting Canning Circus police station.
"They spared no thought for the officers inside or the potentially fatal consequences that could have occurred if the fire had taken hold."