A mixed Hu from Liucheng, the headquarters of Anlu Mountain, his original name was Yaluoshan and he had no original surname. He adopted the surname An from his stepfather. He was proficient in Liubo dialect and worked as a trader in the trade in his early years. In his early years, he was appreciated by Zhang Shougui, the governor of Youzhou. He secretly formed Yiluohe, and later became the Jiedushi of the Three Towns. He launched the Anshi Rebellion and established the puppet Yan regime.