The Zhangye Danxia landform was formed over millions of years by erosion of red sandstone and other sedimentary rocks, which were uplifted during the collision of the Indian and Eurasian tectonic plates.