In this paper, we study the impact of urbanization on the location of agricultural production and the GHG emissions related to transportation. We develop an economic geography model where the location of agricultural activities and urban population are endogenous. We show that increasing yields induce the spatial concentration of agricultural production in the most urban-crowded region if collection costs are relatively low and in the smallest one otherwise. In addition, we find that inter-regional trade in agricultural commodities may be desirable to reduce GHG emissions, except when urban population is equally split between cities. Finally, we highlight that the market may induce an excess of agricultural agglomeration when yields are high and/or collection costs are low.