Complex sentence: The elevation didn't occur only for piety, but also because of political reasons: in fact, during the 12th century, republics were considered less important than kingdoms in diplomatic affairs.
Split into simpler sentences: The elevation didn't occur only for piety but also because of political reasons. In fact, during the 12th century, republics were considered less important than kingdoms in diplomatic affairs.