The Duan family claimed descent from a Han family originating in Gansu province, although it is widely accepted that Duan Siping was a member of the Bai ethnic group.[4] The Dian zaiji (Chinese: 滇載記) records that Duan's ancestor was from Wuwei and, having assisted the Meng clan in battle, was awarded with political rank. However, "his descendant six generations later, Siping, was born under different omens."[5]
Duan was a governor of Tonghai County. Yang Ganzhen (Chinese: 楊干貞), ruler of the Dayining kingdom, feared him and attempted to imprison.[6] Duan went into hiding and gathered soldiers and horses to fight. Allegedly, Duan was eating a wild peach, when he noticed two characters written on the fruit's skin: qing xi 青昔. Duan determined that the first character, qing, referred to the twelfth month, whilst the second, xi, indicated the twenty-first day. He understood this as an omen of when he should attack Great Yining.[7]
Zhao, Yinsong [赵寅松] (2002). "试论大理国的建立和段思平的出身" [Preliminary study of the founding of the Dali Kingdom and Duan Siping's ancestry]. 云南民族学院学报. 19 (5): 75–78.