Ali Zeidan
Marghani served at the prosecution office during the reign of Muammar Ghaddafi. He also worked as a consultant at the law department of the ministry of justice. In November 2012, he was appointed justice minister to the cabinet headed by prime minister Ali Zeidan. In March 2014, when Ali Zeidan fled the country, Marghani remained as justice minister under caretaker prime minister, Abdullah al Thinni. However, Marghani's term ended on 29 August 2014.