The goal is to have a hand value closer to 21 than the dealer's hand without going over 21. Here's a basic overview: