Xiling Town, belonging to Danyi County, Chengdu City, Sichuan Province, is located in the northwestern part of Danyi County, east of the town with the town of diagonal source, the town of Tiangongmiao two towns border, south and Huashuiwan Town, southwest of Ya'an City, Lushan County and Baoxing County, connected to the boundary, the north of twenty-four cesspools through the Broken Head Rock, the sharp top of the peak of the watershed and the county of Wencheuan, north of the city of Chongzhou City Gouhuojiajia, northeast of the fog hill township adjoining. The town people's government is located about 47.5 kilometers from Dayi County. Total area of 412.51 square kilometers.
During the Qianlong period of the Qing Dynasty, it belonged to Xiyi Township.In 1992, it was changed to Xiling Town. As of the end of 2019, Xiling Town had a household population of 5,953. As of June 2020, Xiling Township has 1 community and 4 administrative villages under its jurisdiction, with the township people's government stationed at Zhongshan Street, Group 1, Shaping Community.
In 2011, the per capita net income of farmers in Xiling Township was 7,205 yuan. As of the end of 2019, Xiling Town has 24 industrial enterprises and 5 general stores or supermarkets with business area over 50 square meters.