Boeing quite literally "bet the company" on the 747 and if it hadn't been as popular as it was the company would have struggled to continue, saddled with enormous debt and no products companies wanted to buy
Interestingly, one of the ways that they hedged this bet was by designing it to be easily converted into a cargo plane (though the assumption was the supersonic aircraft would be the replacements).