Dogs shake their heads for various reasons, including to dislodge debris from their ears, relieve discomfort or pain, or express excitement or anxiety. While occasional head shaking is normal, excessive or persistent head shaking can indicate an underlying medical condition and warrants veterinary attention. One common cause of head shaking in dogs is ear infections. …