Pets can have both positive and negative effects on sleep quality. Some studies suggest that having a pet in the bedroom can provide comfort and security, leading to better sleep for some people. However, pets can also disrupt sleep by snoring, moving around, or needing attention during the night. It ultimately depends on the individual and their specific relationship with their pet.