 He was the Secretary General of the Sudanese Communist Party till his death by execution in Khartum during the Gaafar Nimeiry regime.Following his execution Muhammad Ibrahim Nugud became the leader of the party.Mahjub was introduced to communist ideas while studying at Fuad I University in Egypt, from which he was expelled in 1948 for political activities.