Why do woodpeckers peck on wood?

They do this because they are looking for food. Termites and other wood dwelling creatures for example are a good source of protein for them. Woodpeckers also raise their young in trees by pecking away a large hole in a tree! Woodpeckers also drum on trees to communicate territoriality.