 The first written document regarding Apecchio dates back to 1077 and testifies to the dominion over it by the bishop-count of Città di Castello.The control by the Umbrian city lasted until the thirteenth century, when, after long struggles, the Ubaldini della Carda family from the nearby Carda castle prevailed on the town.This noble lineage brought the town into the duchy of Urbino which maintained direct control over it.