His power struggle with the papacy divided the country into two highly volatile camps Guelfs supporting the pope and Ghibellines supporting the emperor .
The country remained united even in the face of the power struggle .