The process of providing medical care that alleviates or reduces pain.