Compensation is when you get something to make up for something bad that happened.
For example, if you accidentally broke your friend's toy, you can give them a new toy as compensation.