The Lebanese prosecutor probing last summer’s port explosion in Beirut filed charges on Thursday against the caretaker prime minister and three former ministers, accusing them of negligence that led to the death of hundreds of people, Lebanon’s official news agency said.

The four are the most senior individuals to be indicted so far in the investigation, which is being conducted in secrecy.

Judge Fadi Sawwan filed the charges against Hassan Diab and former Finance Minister Ali Hassan Khalil, as well as Ghazi Zeiter and Youssef Fenianos, both former ministers of public works. All four were charged with carelessness and negligence leading to death over the Aug. 4 explosion at Beirut's port, which killed more than 200 people and injured thousands.

In this Jan. 21, 2020 file photo, outgoing Lebanese Prime Minister Hassan Diab speaks during a press conference after his government was announced at the Presidential Palace in Baabda, east of Beirut, Lebanon. On Thursday, Dec. 10, 2020, the Lebanese prosecutor probing this summer's port explosion in Beirut filed charges against Diab and three former ministers, Lebanon's official news agency said. All four were charged with negligence leading to deaths over the Aug. 4 explosion at Beirut port, which killed more than 200 people and injured thousands. (AP Photo/Bilal Hussein, File)

The explosion was caused by the ignition of a large stockpile of explosive material that had been stored at the port for six years, with the knowledge of top security officials and politicians who did nothing about it.

Anger has been building up over the slow investigation, lack of answers and the fact that no senior officials have been indicted. About 30 other security officials and port and customs officials have been detained in the probe so far.

TV JOURNALIST SHOT DEAD IN AFGHANISTAN AFTER GUNMEN ATTACK HER VEHICLE

Diab is a former professor at the American University of Beirut who became prime minister late last year. Although he served as minister of education from 2011-14, he is considered to be an outsider to the political ruling class that has run Lebanon since the end of the 1975-90 civil war.

Diab received the backing of the Hezbollah group and its allies after Prime Minister Saad Hariri resigned in the wake of mass antigovernment protests last year. Diab himself resigned a few days after the blast, which leveled the country's main port and destroyed large parts of the city. He has continued to function in caretaker capacity while efforts to form a new government have floundered amid political disputes.

In this May 24, 2019 file photo, then-Lebanese Finance Minister Ali Hassan Khalil listens to Lebanese Information Minister Jamal Jarrah while he speaks to a journalist at the Government House in Beirut, Lebanon. (AP Photo/Hassan Ammar, File)

Commenting on Thursday's development, Diab said his conscience is clear and he is "confident that his hands are clean and that he handled the Beirut port blast file in a responsible and transparent manner."

A statement issued by his office accused Judge Sawwan of violating the constitution and bypassing parliament, adding that Diab has already provided all the information he had to Sawwan.

BEIRUT SILOS AT HEART OF DEBATE ABOUT REMEMBERING PORT BLAST

“This surprising targeting goes beyond the person to the position per se, and Hassan Diab will not allow the premiership to be targeted by any party,” a statement issued by his office said.

It was not clear whether his comments meant he would not accept to be interrogated again. Judge Sawwan said he would interrogate Diab and the three ministers as defendants next week.

In this Aug. 8, 2019 file photo, then-Lebanese Public Works and Transportation Minister Youssef Fenianos speaks during a meeting with Prime Minister Saad Hariri at the government House in Beirut, Lebanon. (Dalati Nohra/Lebanese Government via AP, File)

Youssef Lahoud, legal representative to 1,500 families affected by the blast, described Sawwan's move as “essential step toward revealing the complete truth.”

Lahoud, who also represents the Beirut Bar Association working on behalf of the families, said an indictment doesn’t mean incrimination, and that it is the 5-member judicial council that would issue verdicts.

CRITICS ACCUSE CNN OF PUBLISHING SAUDI 'PROPAGANDA' PIECE HYPING NATION'S TOURISM

The Aug. 4 blast is considered to be among the largest non-nuclear explosions ever to be recorded.

Zeitar was transport and public works minister in 2014, followed by Fenianos in 2016, who held the job until the beginning of 2020. Khalil was finance minister in 2014 and from 2016 until 2020.

Rubble and debris remain around towering grain silos gutted in the massive August explosion at the Beirut port that claimed the lives of more than 200 people in Beirut, Lebanon, Wednesday, Dec. 2, 2020. A heated debate is underway in Lebanon over the fate of the towering silos with some arguing the gutted silos could collapse at any moment and must be demolished, while others call for the ruins to be preserved as a grim memorial. (AP Photo/Hussein Malla)

Documents surfaced soon after the explosion showing that at least 10 times over the past six years, authorities from Lebanon’s customs, military, security agencies and judiciary raised the alarm that a massive stockpile of potentially dangerous chemicals was being kept with almost no safeguard at the port in the heart of Beirut.

President Michel Aoun, in office since 2016, said he was first told of the stockpile nearly three weeks before the explosion and immediately ordered military and security agencies to do “what was needed.” But he suggested his responsibility ended there, saying he had no authority over the port and that previous governments had been told of its presence.

Since the material arrived in Lebanon in late 2013, four prime ministers have been in office. It was not clear why Sawwan has singled out Diab among the ex-premiers who have held the post while the nitrates were improperly stored at a port warehouse, a ticking bomb.

Former Prime Ministers Najib Mikati, Tammam Salam and Saad Hariri have reportedly said that they were not aware of the existence of the material. Diab has said he was only informed about the presence of the “explosives” days before the blast and had planned to visit the port. Later, he told reporters he canceled the visit after being told the stored chemicals were fertilizers.

“There is a list to be made of all those who knew and should all be held responsible,” said Elie Hasrouty, whose father died in the port explosion. “Their job is not to refer (the matter) to others, but to stop that ‘bomb' from going off and to protect people.”

Investigators probing the blast had so far focused on personnel at the Port of Beirut.

CLICK HERE TO GET THE FOX NEWS APP

Both Khalil and Fenanios were sanctioned by the U.S. in September this year, the first two officials to be subjected to those outside of the militant Hezbollah group.