Pistoia 's most splendid age began in 1177 when it proclaimed itself a free commune : in the following years it became an important political center , erecting walls and several public and religious buildings .
In the following years , it became an important political center .