Original: In the Middle Ages, it was instead an important port of Pisa's Republic.
Simplified: In the Middle Ages, it was an important port of Pisa's Republic.