"The security forces launched the operation after contacts were detected at the Building B between a group of men and members of the Islamic State in the case of Jabal Mohsen," Lebanese Broadcasting Corporation International (LBCI) quoted Interior Minister Nouhad Mashnouq as saying at a press conference.
Mashnouq added that the network that planned terrorist attacks from the prison was "shut down" as a result of the special operation.
"The state has accomplished a remarkable achievement and the 'legend' of Roumieh has ended," the Lebanese interior minister added, as quoted by the Lebanese broadcaster, noting that the security forces had been preparing the raid for three months.
On January 10, a double suicide attack occurred in a crowded coffee shop in Tripoli's Jabal Mohsen district, killing nine and injuring 35 people.
Lebanon has seen a wave of violence since the beginning of the Syrian military conflict, as tensions spilled over from the neighboring state.