The colorful rock formations in the Zhangye Danxia Geopark in China were formed over 24 million years ago by the accumulation of different sandstones and other sedimentary rocks. These rocks were then further shaped by erosion from the wind and rain over time.