Mir Geribert was a Catalan nobleman and a rebel against the Count of Barcelona for almost two decades (1040–1059) as the self-declared "Prince of Olèrdola". His revolt was merely the longest and most severe of what was then endemic to Catalonia: private feudal warfare, which was theoretically restricted by the Peace and Truce of God, and disavowal of comital prerogatives by the castellans who nominally owed their positions to the count.