According to History.com
One legend contends that Valentine was a priest who served during the third century in Rome. When Emperor Claudius the second decided that single men made better soldiers than those with wives and family, he outlawed marriages for young men.