In this paper, we develop a network formation game in order to study how free trade agreements among countries and R&D networks among firms emerge in equilibrium. Prior research showed that free trade agreements discourage the formation of international R&D networks under the assumption that trade tariffs are exogenous. In contrast, we allow for endogenous trade tariffs, and show that free trade agreements promote R&D collaboration between firms. In terms of efficiency, we find that although countries can achieve an outcome that is socially desirable, the number of R&D collaborations between firms is likely to be excessive from a social viewpoint. * Manuscript received 24.5.17; final version received 7.12.17. † We are grateful to Akos Valentinyi (the Editor) and an anonymous referee. The paper has also benefited from comments from