This document summarizes the derivation of the gravity model of international trade. It discusses early versions proposed by Tinbergen (1962) and Linnemann (1966) that posit a direct relationship between trade flows and economic sizes and an inverse relationship with distance. It also outlines Anderson's (1979) formal derivation of the gravity model from a model assuming product differentiation and CES preferences. The document reviews how later studies developed stronger theoretical foundations for the gravity model based on monopolistic competition and increasing returns to scale. In summary, the gravity model relates bilateral trade flows to the economic sizes of trading partners and impediments to trade like distance but was criticized for weak theory until theoretical trade models provided support.