Original: After the inconclusive battle of Mellrichstadt (7 August 1077) and the defeat of Henry's forces in the Flarchheim (27 January 1080) Gregory flip-flopped to support the revolt and launched a second anathema (excommunication) against Henry in March 1080, thereby supporting the anti-king Rudolph.
Simplified: But finally he decided to support Rudolph of Swabia after his victory at Flarchheim (January 27, 1080) and declared the excommunication and deposition of King Henry again (March 7, 1080).