Over the course of 30-plus years, the two went from cautious allies to bitter rivals to something almost approaching friends - sometimes, they were all three at the same time.
It seems unlikely that Apple would be where it is today without Microsoft, or Microsoft without Apple.
Here's the history of the bizarre relationship between Steve Jobs and Bill Gates, as told by the Walter Isaacson biography of Jobs and other sources.