Fairy chimneys are formed through a geological process involving volcanic eruptions and erosion over millions of years.