accepted theory recognises the city's name as deriving from the Latin Via Regis ("Kings' Road"), the name of the Medieval road linking the fortification built on the beach to Lucca. According to other historians, instead, the name derives from Vicus Regius. This theory is based on the fact that in imperial times, there was a small inhabited centre (vicus) in the area known as "Gli Ortacci" which belonged to the empire, hence regius ("Royal"). Several hillside towns started developing in the Middle Ages, some of which are still active. The area currently hosting the city of Viareggio was still marshland and not inhabited. Around 1000 A.D. the first hostilities between Lucca and Pisa arose, aimed at gaining control over the coast of the Versila, which since the High Middle Ages had been nothing more than a forest owned by feudal lords in constant rivalry with each other. The first mention of Viareggio dates back to 1169 when a wooden tower guarding the coast was built. A little over two years later, in (1172) a military building named Turris de Via Regia was erected, taking its name from the road that linked it to Lucca (known today as via Montramito). In the following years the area around Viareggio, was involved in the hostilities between Pisa and Lucca, in their attempt to gain control over the coastal area. The conflict was spurred by the desire of the Lucchesi to finally gain access to the sea, and to the Pisane fear of the economic competition of its rival city. It is during these years that the feudal Lords of Versilia were forced to abdicate in favour of Castruccio Castracani. In the following years the area upon which Viareggio would eventually be built was marked by a number of minor battles, invasions and pillages. In addition, the area was also affected by the pestilence which, recounted by Giovanni Boccaccio in his masterpiece the Decameron, spread throughout the whole of Italy. 15th through 17th centuries In these years Florence expanded its control over Tuscany. Lucca, however, managed to maintain its independence in exchange for hefty financial penalties. On September 10, 1513, Pope Leo X removed the port of Motrone from the control of Lucca. This directly affected the future of Viareggio which, from that moment, became the focus of Lucca's efforts to turn the town into its centre for commercial activities, and, in addition to