Apart from the limestone caves,some caves are formed by a hydrogen gas.it comes from deep below the earth and rises to the surface. The gas dissolves or eats away at the rock and creates a cave.other caves are sea caves.they are found along coastlines.the waves pound the coasttline,eroding weak areas in the rock