Dogs wag their tails to communicate their emotions. A wagging tail can signal excitement, happiness, or even nervousness depending on the context.