The Pla de Palau was long ago the main square of trading Barcelona, as it provided the only access from the sea to the city for people or merchandise through the Sea Gate. During the medieval period it became the centre of commercial exchange, hence a series of buildings related to trade were built within the square.