I was always under the impression that St. Valentine was a Catholic priest, and martyr (witness) of the Catholic Church.
During that period, the Roman Emperor needed soldiers, and was completely against marriage. He needed single men to be completely devoted to serving him in battle.
The priest, Valentine, rebellious against the Emperor, secretly celebrated couple's marriage. For that, he was martyred.