In 1923, Hoja Niyaz returned to Xinjiang, first to Ghulja, then to Urumchi, where he was involved in organizing underground revolutionary groups and preparing a new rebellion. In 1927, he returned to Kumul for the funeral of his father, and after the death of Kumul Khanate ruler Shah Mahsut in March 1930, Hoja Niyaz was appointed to the high position of adviser to new ruler of the Kumul Khanate.