Mohamad Mangundiprojo was born on 5 January 1905 in the Javanese province (which are referred to as regencies) of
Sragen. At the time, Java and many other provinces constituted the
Dutch East Indies, a colonial possession ruled by the
Netherlands. Mangoendiprodjo's family had a history of fighting against the Dutch; his great grandfather had served the
Sultanate of Demak and had fought alongside
Diponegoro, a 19th-century Javanese noble who had opposed Dutch rule in the
Java War. During his formative years, Mangundiprojo chose to pursue a career of becoming a civil servant in the Dutch colonial government. In 1926, he graduated from a Dutch-operated university on Java and planned to join the
Municipal Police. However, he instead became a prosecutor in the
Jombang Regency. ==Japanese occupation==