 As a royal town, Castielfabib periodically sent a representative to the Generalitat Valenciana, the Valencian Parliament.During the Peninsular War, Castielfabib was occupied by the French.In the civil wars of the 19th century it was occupied by Carlist forces, who rebuilt the castle; it was later demolished and won back by nationalist forces.