David Alexander us correct. Unless you take a prepay option, then it cones out when you book.
When you check-in, hotels will process the credit card for a hold to make sure the funds are there. When you check-out, they finish the billing and charge the card for whatever your charges are. Usually processes overnight.
Thanks! Your answer is awaiting moderation.