Six British men who were inspired by Islamic extremist material have been sentenced to almost 20 years in prison each for plotting a bomb and gun attack on a far-right rally.

The six, from the Birmingham area of central England, had earlier pleaded guilty to planning an attack on the anti-immigrant, anti-Muslim English Defense League.

The plot failed when they arrived after the rally had ended. They were caught by chance after a car was impounded for insurance violation. The vehicle contained guns, a home-made bomb and other weapons.

Judge Nicholas Hilliard said the suspects had intended to cause serious injuries and possibly deaths.

He sentenced three of the plotters Monday to 19 years and six months in prison, and the other three to 18 years and nine months.