The Captain General of the Church (Italian: Capitano generale della Chiesa) was the de facto commander-in-chief of the papal armed forces during the Middle Ages. The post was usually conferred on an Italian or other noble with a professional military reputation or (later) a relative of the pope. The parallel office of Gonfalonier of the Church was more a formal and ceremonial honor than the responsibility of a tactical military leader. The office was at times made subordinate to temporary offices, Pope Callixtus III appointed Cardinal Rodrigo Borgia (Later Pope Alexander VI) to the office "Chief and General Commissary of the Papal Army." A number of such offices under many titles were used as ministers of war by popes, the captain general operated as a field commander under these offices. Pope Innocent XII removed both ranks and replaced them with the position of Flag-bearer of the Holy Roman Church (Italian: Vessilifero di Santo Romana Chiesa), which later became hereditary in the Naro Patrizi.
It was traditional for the Captain General to carry a baton of command, blessed by the pope.