羌族
Descendant of Ma Yuan, Ma Teng was from Maoling County (), Fufeng Commandery () (present-day Xingping, Shaanxi). His father, Ma Ping (), was a minor official in Tianshui Commandery, but because of some dispute he was dismissed from his post, and went to live among the Qiang people.