Underground mining methods include room-and-pillar, longwall mining, sublevel caving and block caving. Longwall mining involves completely removing the entire coal seam in one operation by leaving no pillars and allowing the roof to cave. Factors that influence the selection of an underground mining method include the deposit's size, shape, depth and geology, geotechnical properties, economic considerations, available technology, and environmental concerns. The optimal mining method maximizes resource recovery while maintaining safety and minimizing costs and environmental impacts.