Speleogenesis is the type of weathering and erosion that is primarily responsible for the formation of caves. This type of erosion is caused by water, tectonic forces, pressure, microorganisms, and atmospheric influences which are the factors that contribute to cave formation.
Hope this helps.