The rebellious German nobles used the excommunication of Henry to set up a rival king, Duke Rudolph of Swabia (Forchheim, March 1077). At first Gregory seemed to be neutral because the two parties (emperor and rebels) were of fairly equal strength. 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).