The correct option is (a) To prevent excessive steam pressure
Easy explanation: The function of safety valve is to prevent the excessive steam pressure inside the boiler drum exceeding the design pressure. When the pressure inside the boiler drum exceeds the rated pressure, safety valve automatically opens and discharges the steam to the atmosphere till normal working pressure is retained.