We classify compositions avoiding a single permutation pattern of type (2, 1) according to Wilf-equivalence and give the generating function for each of the Wilf classes.