In a vertically differentiated oligopoly, firms raise cost-reducing alliances before competing with each other. It is shown that heterogeneity in quality and in cost functions reduces individual incentives to form links. Furthermore, both differentiated Cournot and Bertrand competition qualitatively similar incitations to form alliances.