Caves form in a variety of ways including erosion and dissolution. They come in many different shapes and sizes depending on the geology of the area. Caves provide habitat for unique ecosystems and some contain important archaeological and paleontological records of past life on Earth.