The dealer must always hit on any hand value of 16 or less and stand on any value above 17. The dealer must always stand on hard 17 but the rule on soft 17 varies from table to table. It has become common for the dealer to hit soft 17 since that increases the probability of the dealer (house) winning.