Meaning:
Example:
Le dieron un cocotazo por portarse mal.
(He was rapped on the head for misbehaving.)