Speleogenesis is the type of weathering and erosion that is primarily responsible for the formation of caves. This refers to geological processes that vary in sizes. Erosion that is caused by water, tectonic forces, pressure, microorganisms, and atmospheric influences are the factors that contribute to cave formation.