Pope Pius VII was head of the Catholic Church from 14 March 1800 to his death in August 1823. He ruled the Papal States from June 1800 to 17 May 1809 and again from 1814 to his death. From Wikipedia
The observance recalls Mary's Seven Sorrows, rooted in Servite tradition, later placed on the universal calendar in 1814.