A prominent senior state advocate died after a gun, displayed in court as an exhibit, was accidentally discharged in the Ixopo regional court on Monday.

KwaZulu-Natal director of public prosecutions Elaine Zungu confirmed that advocate Addelaid Ann Ferreira Watt died on Monday.

It is understood the gun fell and a shot went off, hitting the advocate in what has been described as "freak accident".

“It is with great sadness that I inform you of the passing on November 18 of senior state advocate Addelaid Ann Ferreira Watt of the office of the director of public prosecutions, Pietermaritzburg," said Zungu.

"Her untimely passing is mourned by all. Our thoughts and prayers are with her family during this difficult time. The family has requested that their privacy be respected," Zungu said in the bereavement notice to staff.