Question: who was the longest reigning pope in church history
Answer: Pope Pius IX ( Italian : Pio ; 13 May 1792 -- 7 February 1878 ) , born Giovanni Maria Mastai - Ferretti , was head of the Catholic Church from 16 June 1846 to his death on 7 February 1878 .