nenghai was born gong xueguang in hanwang town of mianzhu city, in sichuan province, to gong changyi (), a peddler. he had an elder sister. when he was a child, both his parents died, leaving only him and his 10-year-old sister. by age 14, he became an apprentice in hengshengtong (), and studied classic and history under the proprietor. in 1905, he enrolled at the army academy (now army war college), where he studied alongside liu xiang and liu wenhui. after graduating in 1907 he became a drillmaster at yunnan military academy, both zhu de and yang sen were his student. then he served as regimental commander in sichuan government, holding the position until he was transferred to the beijing general's office ().