
Dallo Statuto di Barga del 1360 sappiamo che già all'epoca il castello era diviso in terzieri,
che prendevano il nome dalle tre porte della cinta muraria: Mancianella, Borgo, Macchiaia.
Porta Macchiaia, uno dei tre accessi al borgo, è conosciuta con questo nome in quanto rivolta verso i boschi (le macchie) dell'Appennino barghigiano. Era conosciuta anche come "Latria" (poiché fronteggia la località Latriani).
La porta originariamente aveva una struttura più articolata e imponente dell'odierna, con una seconda porta di accesso,
forse un ponte levatoio che la metteva in collegamento con il terreno prospiciente l'attuale Villa Buenos Aires, e una torretta sovrastante ove veniva montata la guardia giorno e notte.
Proprio da qui, nel 1797, partì la rivolta popolare di ispirazione napoleonica che segnò la fine della tradizionale chiusura notturna delle porte dell'antico borgo.
Dopo varie modifiche occorse lungo i secoli, il suo attuale aspetto è quello assunto a seguito dei danni causati dal terremoto del 7 settembre 1920.
La porta si affaccia verso l'antico sobborgo della Fornacetta che prende il nome dalla presenza in loco di fornaci per laterizi,
seppur vi sia una tradizione locale che vorrebbe quel nome per un'antica presenza di fornaci della famiglia Della Robbia.

From 1360 Statute of Barga we know that at the time the castle was divided into three quarters.
They took their name from the three gates of the walls: Mancianella, Borgo, Macchiaia.
Porta Macchiaia was one of the three entrances to the village. It has that name as it faces the woods of the Apennines.
It was also known as "Latria" (as it faces the area of Latriani).
The gate had a more complex and imposing structure than today. There was a second access door, perhaps a drawbridge which connected it to the land facing the "Villa Buenos Aires".
There was also an overhanging turret where the guards stood day and night.
In 1797 the Napoleonic-inspired popular revolt started from here. It marked the end of the traditional night closing of the doors of the ancient village.
After various changes over the centuries, its appearance now is the one following the earthquake of 7 September 1920.
The door faces the ancient suburb of Fornacetta. Fornacetta takes its name from the local presence of brick kilns;
there is a local tradition (with no evidence) that assigns this name to the place forthe presence of Della Robbia family kilns.