AbstractSeaborne shipping is the dominant mode of transport in international trade in agricultural products, and an increasing part of seaborne agricultural trade is carried in containers. Furthermore, the majority of world containers are moved through liner shipping services, that is, regular transport services provided by global shipping companies which comprise a dense network connecting ports and countries around the world. Using a theoretically consistent gravity equation and a novel identification strategy based on the use of intra‐national trade flows, this paper investigates the effect of liner shipping connectivity on international trade in agricultural products. The results show that liner shipping connectivity has a positive and statistically significative effect on agricultural trade. Moreover, this positive effect can be observed for the majority of the agricultural products analysed and is also identified for countries at different stages of development. These findings appear especially relevant in terms of the objective of increasing less developed countries' participation in global agricultural trade.