Six men have been sentenced to a total 111 years in prison for their part in a failed terror plot to attack the English Defence League.
Judge Nicholas Hillyard said that they had gone armed with an arsenal of weapons that would have caused "indiscriminate, serious injury" and possibly death.
The group: Omar Khan, Jewel Uddin, Zohaib Ahmed, Mohammed Saud, Anzal Husain and Mohammed Hasseen, were carrying a firework bomb packed 359 nails, two sawn off shotguns, 9 rounds of ammunition, two machetes, two swords and six knives.
The random nature of their attack meant it could have potentially injured or killed not just those on the march but the police officers controlling it and other members of the public. Judge Hillyard told the men that all of them accepted the weapons might cause death.
He said it was "by good fortune alone that this attack did not take place."
Five of the men drove to Dewsbury in June 2012 to attack the EDL march but arrived after the event had finished.
The judge said he was convinced that they were motivated by extreme ideology to carry out their "hideous plan."
Although their chosen target was the far right group English Defence League, the judge said that he thought it went "well beyond a preoccupation with the EDL."
He warned that had they succeeded they would have sparked "a tit-for-tat spiral of violence" and added:
He said that they had become radicalised by immersing themselves in "a tide of apparently freely available material".