The use of punishment refers to the application of an aversive stimulus or the removal of a desired stimulus in order to decrease the likelihood of a behavior occurring again. It is used as a behavioral modification tool under operant conditioning principles.
In operant conditioning, extinction refers to when a previously reinforced behavior no longer receives reinforcement, leading to its gradual disappearance.