The cock and dog became friends and went on a journey through the forest together. They decided to rest under an oak tree for the night, with the dog sleeping in a hole at the bottom of the tree. In the morning, the cock's crowing attracted the attention of a hungry fox. The fox flattered the cock, but the cock knew the fox's true intentions and suggested the fox meet his friend in the hole first. When the fox approached, the dog inside growled and chased the fox away, protecting his friend the cock.