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