 An assumed descendant of the latter, Ulderic of Carpegna, received the fief of Carpegna and other properties in the Montefeltro and Romagna regions from Otto I, Holy Roman Emperor.The lords and counts (as such first mentioned in 1238) of Carpegna acquired more than 30 castles and towns in the region.They split into the "Carpegna-Gattara" and the "Carpegna-Pietracuta" branches, which in the struggles between papal and imperial followers (Guelphs and Ghibellines) took opposite sides.