The conditions of ecologically dangerous emergencies in the oil and gas industry have been investigated in the work. The high degree of environmental risk that is present in case of emergency requires measures to prevent their occurrence. To improve the environmental risk management system in the oil and gas industry, a comprehensive study of both internal technological processes and the state of equipment, as well as external influences has been conducted. The analysis of the causes of emergency oil and gas fountains at different stages of the life cycle of oil and gas wells have been carried out. The factors preceding the occurrence of gas-oil-water manifestations and open fountains in more than 100 wells in different conditions of their operation are given. Factors are grouped into separate areas and the most influential are highlighted. The main types of environmental hazards that occur during emergency oil and gas fountains have been identified.