After Constantine had made the Roman church’s brand of worshipping the official religion of the Roman Empire (A.D. 325), church leaders wanted to do away with the pagan festivals of the people. Lupercalia was high on their list. But the Roman citizens thought otherwise.
It was not until A.D. 496 that the church at Rome was able to do anything about Lupercalia. Powerless to get rid of it, Pope Gelasius instead changed it from February 15 to the 14th and called it St. Valentine’s Day. It was named after one of that church’s saints, who, in A.D. 270, was executed by the emperor for his beliefs.