Method for stabilizing an electrical power grid connected to a superordinate power grid, wherein the electrical power grid has at least one connected energy storage system, the method comprising: defining a first range for an electrical variable (U, f) of the power grid around a setpoint value; defining a second range for the electrical variable (U, f) of the power grid around the setpoint value, wherein the second range is greater than the first range and is smaller than a third range around the setpoint value, wherein the third range is associated with deactivation of at least part of the power grid; detecting the electrical variable (U, f); comparing the detected electrical variable (U, f) to the first range and to the second range, and (a) if the electrical variable (U, f) is within the first range, characterizing the state of the power grid as a normal state; (b) if the electrical variable (U, f) is outside of the first range and within the second range and the power grid is in a first operating state in which electrical power is transferred from the power grid to the superordinate power grid, or in a second operating state in which an electrical power balance between the power grid and the superordinate power grid is at least approximately equalized, calling a first procedure for stabilizing the power grid, in which a first counter is incremented and the further progression of the first procedure depends on the reading of the first counter; and (c) if the electrical variable (U, f) is outside of the second range, calling a second procedure for stabilizing the power grid, in which a second counter is incremented and the further progression of the second procedure depends on the reading of the second counter, wherein the second procedure for stabilizing the power grid comprises decoupling the power grid from the superordinate power grid. defining a first range for an electrical variable (U, f) of the power grid around a setpoint value; defining a second range for the electrical variable (U, f) of the power grid around the setpoint value, wherein the second range is greater than the first range and is smaller than a third range around the setpoint value, wherein the third range is associated with deactivation of at least part of the power grid; detecting the electrical variable (U, f); comparing the detected electrical variable (U, f) to the first range and to the second range, and (a) if the electrical variable (U, f) is within the first range, characterizing the state of the power grid as a normal state; (b) if the electrical variable (U, f) is outside of the first range and within the second range and the power grid is in a first operating state in which electrical power is transferred from the power grid to the superordinate power grid, or in a second operating state in which an electrical power balance between the power grid and the superordinate power grid is at least approximately equalized, calling a first procedure for stabilizing the power grid, in which a first counter is incremented and the further progression of the first procedure depends on the reading of the first counter; and (c) if the electrical variable (U, f) is outside of the second range, calling a second procedure for stabilizing the power grid, in which a second counter is incremented and the further progression of the second procedure depends on the reading of the second counter, wherein the second procedure for stabilizing the power grid comprises decoupling the power grid from the superordinate power grid. (a) if the electrical variable (U, f) is within the first range, characterizing the state of the power grid as a normal state; (b) if the electrical variable (U, f) is outside of the first range and within the second range and the power grid is in a first operating state in which electrical power is transferred from the power grid to the superordinate power grid, or in a second operating state in which an electrical power balance between the power grid and the superordinate power grid is at least approximately equalized, calling a first procedure for stabilizing the power grid, in which a first counter is incremented and the further progression of the first procedure depends on the reading of the first counter; and (c) if the electrical variable (U, f) is outside of the second range, calling a second procedure for stabilizing the power grid, in which a second counter is incremented and the further progression of the second procedure depends on the reading of the second counter, wherein the second procedure for stabilizing the power grid comprises decoupling the power grid from the superordinate power grid.