A man accused of trying to light a fire inside the Cathedral of St. Paul last spring was sentenced to nearly two years in prison.

A Ramsey County district judge gave the 21-month sentence to Dominic Segura on Thursday morning.

Segura was seen igniting paper and then shoving the lit pages down the historic church’s air vents last April, according to authorities.

His behavior caught the attention of other churchgoers and then the police, who ordered a temporary evacuation of the cathedral out of fear the 29-year-old may have been carrying a bomb. It was later determined he wasn’t.

When officers arrived at the scene, they found two people trying to restrain him.

During a search of his belongings, police found a butane lighter, a bottle of liquid, an orange key fob with a black button on it, and a bag filled with books wrapped inside a wire connected to what appeared to be a computer hard drive, charges say.

Police also reportedly saw several pages torn out of a church hymnal near where Segura had been sitting.

Segura pleaded guilty to one count of threats of violence in December. A second charge of first-degree attempted arson was dismissed. His attorney, public defender Aaron Haddorff, could not be immediately reached for comment.