There are a range of reasons that dogs bark, such as communicating with other dogs or people, warning their owners of danger, or expressing their emotions, such as excitement or fear, when they bark.