This phrase is a poem by Dylan Thomas, and it is sometimes used to encourage people to fight against any type of adversity. The phrase means that it is important to stay strong in the face of suffering or hard times. Instead of just accepting that hard times are coming and going gentle into the night (death), it means to fight back, to show strength and courage, to rage against the dying of the light (fighting against the inevitable).