Mexico has wrapped up a deal with online retail giant Alibaba Group to sell packaged food and agricultural products to Chinese consumers.

The retailer has agreed to provide access to its logistics infrastructure and payment platform to support trade between the two countries.

“Alibaba has a sophisticated e-commerce ecosystem and a reach of more than 500 million active annual consumers,” said Mexican President Enrique Peña Nieto, who was present when the agreement was signed.

China is currently Mexico’s third-largest trading partner, and Mexican products are already being sold in China on a small scale. The relationship with the retailer may also lead to the attraction of more Chinese tourists to Mexico.

Analysts say the deal will open up a new and vast market for Mexican farmers — who felt left behind by the North American Free Trade Agreement (NAFTA) — because Alibaba would make room for small- and medium-sized enterprises (SMEs) in Mexico to expand business operations into China.

The deal materializes four months after Jack Ma, Founder of Alibaba, came to Mexico to discuss with President Peña Nieto how technology plays a critical role in economic development.

“Alibaba is committed to inspiring, motivating and enabling SMEs from around the world to grow and thrive through e-commerce and the use of technology,” said Ma.

Alibaba’s payment platform is popular in China. Earlier this month, the retailer launched a new payment system that scans the customer’s face to verify their identity, which has been a hit with China’s young population.