Caves are formed in limestone rocks through a process known as chemical weathering. This process involves the dissolution of limestone by water. Water that seeps into the ground can become slightly acidic due to the presence of dissolved carbon dioxide. This acidic water then reacts with the calcium carbonate in the limestone, forming calcium bicarbonate (Ca(HCO3)2). The calcium bicarbonate is then carried away by the water, leaving behind a void or cave.
The rate at which caves are formed depends on several factors, including the amount of water flowing through the limestone, the acidity of the water, and the temperature of the water. Caves are most commonly found in areas with a high level of rainfall and in areas where the temperature is relatively warm.
Some of the world's most famous caves include the Carlsbad Caverns in New Mexico, the Mammoth Cave in Kentucky, and the Waitomo Caves in New Zealand. Caves are popular tourist destinations and are also important for scientific research.