In her ruling, Judge Mary Devlin gave 45-year-old Robert White the maximum sentence for breaking and entering with intent to commit an indictable offense, the Globe and Mail reported.
The case unfolded last November when demolition contractors discovered a fortified dungeon in the basement of an abandoned farmhouse in Pickering, east of Toronto. The room had chains hung from the ceiling and jugs of water, the Globe and Mail said.
The house burned down under suspicious circumstances in January, but there are no outstanding charges, the Toronto Star said.
The court heard prosecutors' allegations that White intended to imprison his ex-wife's closest female friend, whom he blamed for his marriage's failure in 2008, the Star said.
White was arrested in February and has spent 235 days in jail, which will be deducted from his sentence, the reports said.
He admitted to police he had intentions of using the dungeon to imprison someone, but didn't identify the person, the Star said.
2014: NFL Cheerleaders [PHOTOS]
Bus attack in Pakistan kills eight