The first records of a population center in the Pontorme area date back to the early Middle Ages and refer to a royal curtis called Cortenuova, the same name borne by the community (popolo di Santa Maria a Cortenuova), which would become part of the small rural town of Pontorme centuries later. There is, however, a curtis of Pontorme, documented in 1099, in reference to the Cadolingian abbey of San Salvatore of Fucecchio, as testimony of a past in which Pontorme, perhaps, had also been part of the possessions of that important noble family. After 1113, in the aftermath of Count Ugo’s dying without an heir, as the last exponent of the family, the lands of Pontorme merged into the estate of another noble family. Count Ugo’s widow, in her second marriage, married Count Tancredi Nontigiova of the Alberti, who thus absorbed a series of Cadolingian possessions, including Pontorme. In 1117, Count Ildebrando of the Alberti exempted from certain taxes various fideles of the abbot of Fucecchio resident in loco et finibus Pontormio iusta ecclesiam Beati Martini. It was right there, on the spot where the church of San Martino still stands today, that the castrum was constructed. And this happened in those very years if, in 1120, we have the first attestation of a castrum quod vocatur Pontormum. On that occasion, the small Alberti castle had been besieged by Count Guido Guerra. In the immediate vicinity of Pontorme, in fact, only a year earlier, in 1119, the Counts Guidi had started an important initiative, the founding of the castle of Empoli, in clear antagonism with the very nearby presence of the Alberti in Pontorme. The initiative of the Guidi was an outright program to redefine the demographic balance of the area: the new castle of Empoli, founded around the site of the ancient parish, would have drained population from all the villages in the area. From that moment on, the history of the two castles, Empoli of the counts Guidi and Pontorme of the Alberti, so close to one another, would be closely linked.