The earliest news of this territory dates to 1239, when the people of the now vanished district of Carpena swore loyalty to the Genoese Company. Then, in 1251, the inhabitants of the small hamlets scattered halfway up the slopes chose to gather at the mouth of the stream, the rio, that runs through the valley. That is how Riomaggiore was founded, and the name still carries the stream in it. 1251 is also the year of the first documents mentioning the village. It swore allegiance to the Republic of Genoa as a fief of the Lords of Ripalta. It then passed under the Fieschi family, and in 1276 it was definitively sold to Genoa. Here is a curious detail about the Cinque Terre. Until 1871, Corniglia was also a hamlet of Riomaggiore, together with Manarola. Today they are separate villages with their own identities, but for centuries they shared an administrative story. Under French rule from the end of 1797, Riomaggiore was annexed to the Department of the Gulf of Venus, and later to the Department of the Apennines under the First Empire of France.