Raniero Capocci, also known as Ranieri, Rainier, or Rainerio da Viterbo (c. 1180-1190 – 27 May 1250) was an Italian cardinal and military leader, a fierce adversary of emperor Frederick II.
Frederick's ambiguous behaviour led to his excommunication by Gregory four years later, and Capocci defended the pope's move with a series of letters and treatises disseminated throughout Europe, including the manifesto Ascendit de mari.
This is manifest in the events leading to the siege of Viterbo, in which Capocci was instrumental in the expulsion of the imperial garrison from the city, and in the following defeat of the rescue army led by Frederick in person.
When the news arrived that a compromise with the emperor was likely, he had a series of pamphlets, full of insults and accusations of heresy against Frederick, published in the French city: their success among the prelates in the First Council of Lyon led to the deposition of the Sicilian leader (1245).
He was initially buried in the Abbey of Citeaux, but later his remains were transferred to the church of Santa Maria in Gradi at Viterbo, which he had built in 1217–1221 as a gift to his personal friend, Saint Dominic.