Mostafa was born on 11 November 1911 in the city of Asyut, Khedivate of Egypt to a Sudanese father and Turkish mother.
Mostafa would complete his university studies in Germany and joined the German Film Institute, he then returned to Egypt to work as an editor at Studio Misr.
After returning from his day job, he entered the door using a spare key obtained by Niazi's sister, Hajjah Zainab Mostafa where he nearly fainted at the sight of the director lying in a pool of his own blood wearing a white robe, his hands were tied behind his back and a cloth stuffed into his mouth while the veins of his hands were cut.
On 16 January 1987 the prosecutor could not find evidence against any specific person and decided to preserve the investigation.
[9][10][11] Niazi was married twice, first to his studio colleague at the editing department, named Najia Ibrahim Belal or Tahia Ibrahin Belal, an actress better known by her stage name Kouka, or Koka who was famous for playing the role of a Bedouin girl and starred in films such as Rabha (1945), Wedad (1936) and Mughamarat Antar wa Abla (1948).