Barite is a mineral that acts as a weighting agent, effectively preventing the explosive release of oil and gas during drilling, making it an essential component in drilling muds.