Chocolate contains cocoa and cocoa contains the compound theobromine. Theobromine is toxic to dogs and other pets at certain doses. Chocolate poisoning is a problem that occurs mainly in dogs but also occurs occasionally in cats or other animals.