Please tell the car hire company straight away if your rental car damaged.
When you drop your car off, the car hire company will check it, and charge you for any damage. They'll do this by keeping some or all of your deposit - and if necessary, charging your credit card.
You can find the details of the excess amount (the maximum you can be charged for some types of damage) in your car's terms and conditions.