A security deposit is a refundable amount that some rental companies block on your credit card at pick-up. It is released once the car is returned in the agreed condition.
For the deposit, most rental companies require a credit card.
For payment at the counter, both debit and credit cards are usually accepted.
Please check the rental company’s terms and conditions.