Best answer is D) groundwater
Caves generally form by the slow (very very slow) dissolution of soluble rock, such as limestone, which is dissolved by the acid in groundwater. Stalagmites and stalactites are evidence of this very slow dissolution process.