Inflict (verb): To cause someone to experience something unpleasant or harmful.
For example, if you hit your friend and it hurts, you are inflicting pain on them.