It is believed to have been built in the early Middle Ages by the Lombards, on the road which links the neighbouring Emilia and Liguria.
Between the 16th and the 17th centuries, Compiano was in its prime, and minted its own currency, opened state schools and started a pawn system.
In the 18th century Compiano passed from the Farnese to the Borbone family, and was then annexed to the realm of Maria Luigia of Austria, then Duchess of Parma, who used the castle as a State prison for Carbonari captives in 1821.
After the war ended, the school was closed down and the castle was bought by Marchioness Lina Raimondi Gambarotta who, after her death in 1987, left it to the Compiano municipality.
Built on a rocky spur which dominates the river Taro, the castle is similar to a projection from the surrounding fortified walls.