Back then thousands of years ago, there were only around 1 million humans and wolves were curios animals. They follow humans and eat their food scraps. Just by that, our relationship with dogs started.
We have an amazing story with our animal bestfriend and it will take generations of generations for the two species to get to know each other through the span of time. What we know know of our domesticated dogs, we owe it to our ancestors and their approach to the wolves.