A journey of relationship

Ubuntu, the dog, and Ndoto, the cat, were enemies when they first met. After four months, they are now best friends. How did this relationship evolve?