Its territory extended beyond the city of Lucca, reaching the surrounding countryside in the north-western part of today's Tuscany region, to the borders with Emilia-Romagna and Liguria.
A certain autonomy was granted by a 1084 diploma issued by Emperor Henry IV, while on his Italian campaign during the Investiture controversy with Pope Gregory VII.
After the death of Margravine Matilda of Tuscany in 1115, the city began to constitute itself an independent commune, with an administration officially acknowledged by Margrave Conrad in 1120 and by Emperor Frederick in 1162.
At the end of the 12th century, Lucca and other cities of Tuscany created an alliance to fight the neighbour feudal lords and subjugate their lands.
As a consequence, the republic witnessed the rise of the people faction and change in government structure, as well as participating in a long series of wars between Guelphs and Ghibellines.
In Lucca, the citizens gave the lordship over their Republic to the ghibelline Castruccio Castracani, member of the House of Antelminelli and leader of great political and military capacity.
[3] When Castruccio died, the city fell into a period of anarchy which saw it subject at first to the dominion of a military company, which had Marco from the House of Visconti as its leader and hostage at the same time.
[4] Having regained its freedom in 1370, Lucca returned to a republican government and with a shrewd foreign policy gained remarkable fame in Europe thanks to its bankers and the silk trade.
Lucca achieved international fame for its workmanship of the more elaborate and costly fabrics, thanks to its technological edge in weaving and dyeing, and its closely guarded monopoly over advanced techonologies such as looms and combs for brocades and velvets and the silk twisting mill.
[6][7] A judgment of the important historian Giovanni Sercambi from Lucca has been preserved on this period, he especially highlights the conferment of all offices to supporters of the dominant family and also mentions the provisions to prevent the largest assembly of citizens (the General Council) from meeting.
When Florence refused, Genoa sent an army of 6,000 men led by Niccolò Piccinino who attacked the Florentines on the Serchio and, after a bloody battle, they were forced to withdraw because the Lucchesi had taken them behind leaving the city.
[12] Lucca was the third largest Italian city-state with a republican constitution ("comune") to remain independent over the centuries, as larger Venice and Genoa also did.
A new constitution for the State of Lucca was published in 1801, restoring the office of Consul of Justice as the president of the Executive branch, with a parliament called the Great Council.