Sentencing John Larsen to 18 years in prison, Judge Merfyn Hughes said the former mayor had subjected the residents of Denbigh to "a sustained campaign of quite deliberate terror".
He said Larsen's victims were residents of the community he had been elected to serve. Hew said: "Even while detonating these devices, you continued the pretence of showing concern for their welfare and co-operating with the police."
He said Larsen's actions had caused two residents to sell their homes and move away out of fear. He said he was sure someone would have been killed or seriously injured if Larsen hadn't been stopped.
"The jury have seen your evidence for what it is. A dismal attempt to avoid responsibility by one lie after another."
More top news
The cargo is part of a total of six million surgical masks that have already been brought to Europe from China using Airbus aircraft.
It comes after a number of Welsh politicians raised concerns aboutNorth Wales being ''overlooked'' for temporary hospital plans.
Mark Drakeford confirmed Roche were involved just a day after the Health Minister said the company would "absolutely not" be named.