The seeds of Mexico's attractiveness as a global manufacturing hub began in the late 1980s, when the nation started restructuring its economy and became more open to global trade by signing pacts that lowered trade barriers. The most notable of these was the North American Free Trade Agreement, which Mexico, Canada, and the U.S. signed in 1992, creating the largest single market in the world.

To date, Mexico has signed 12 free-trade agreements (FTAs) involving 44 countries. The FTAs reduce or eliminate tariffs on parts that Mexico-based companies import and on the finished goods they export, making trade more competitive on a global scale. This cost advantage, combined with Mexico's proximity to bigger and richer markets like the U.S., Canada, and Brazil, is a key reason why industrial giants and automakers have built plants and factories in Mexico in recent years.

The trade deals have been productive. Mexican exports soared more than fivefold, from $60.8 billion in 1994 to $349.6 billion in 2011, according to the U.S. Congressional Research Service (CRS). Total imports over the same period climbed more than fourfold from $79.3 billion to $350.9 billion. Exports as a percentage of GDP in 2009 stood at 27.7%, exceeding China's 26.7% rate, the first time Mexico had surpassed China in many years, according to World Bank data.

Over the past several years, the two countries' exports as a portion of GDP have been roughly even—an indication of how much Mexico has closed the manufacturing competitiveness gap with China. Mexican exports have also moved steadily up the value chain as companies churn out increasingly sophisticated products. The country's top five exports in 2011 were crude oil, passenger cars, flat-screen TVs, mobile phones, and delivery vehicles, according to the CRS report.

Many T. Rowe Price managers have sought to capitalize on Mexico's booming export sector by investing in the infrastructure that makes increased trade possible.

Several T. Rowe Price funds, including the Growth Stock Fund, Mid-Cap Growth Fund, and Small-Cap Stock Fund, own significant stakes in domestic railroad and trucking companies for which ferrying raw materials into Mexico and delivering finished goods across North America is a growing part of their business.

The outlook for cross-border rail traffic has greatly improved thanks to major infrastructure upgrades in Mexico. The country's largest railroad, Ferrocarril Mexicano (Ferromex),* spent $2.1 billion to improve its railways over the past 13 years, which has reduced shipping times and increased capacity.

The rise in exports has helped foster domestic consumption. Robust growth and slow inflation, helped by a strong central bank, have enabled millions of Mexicans to join the middle class—defined as those earning $10 to $50 per day—making the country one of Latin America's leaders in middle class growth over the past 15 years, the World Bank said. "When you have low unemployment, increasing real wages, modest inflation, relatively low interest rates, and growing consumer credit," Costa Buck says, "it all translates into a growing middle class."

To capitalize on this trend, Costa Buck favors consumption-driven sectors like financials and consumer discretionary, which he thinks have the most promising prospects as incomes rise and consumer credit becomes more widespread. Corporate governance, which has often suffered in Latin America, has also improved markedly in Mexico. "We rarely encounter questionable actions," he says. "Corporate governance is generally very solid in Mexico."

The newly elected reform government of Enrique Peña Nieto appears to be driving some of the investor enthusiasm. Peña Nieto has moved to push through ambitious reforms, targeting improvements in taxes and education, in an effort to unlock the country's economic potential. Among his boldest proposals: opening up Mexico's heavily protected oil and gas industry to private investment. "There's a lot of optimism that this new government will be able to pass some structural reforms in tax and energy policies over the next couple of years," says Costa Buck. "The hope is that it will give Mexico more flexibility and productivity and the potential to expand GDP growth."

Mexico City's Business DistrictPeña Nieto's reform agenda is supported by the major opposition party, a key difference from previous governments that have failed to enact reforms. Together, the ruling and main opposition parties now have the two-thirds majority in both houses of Congress needed to pass legislation. Last November, the government passed a labor reform law making it easier for companies to hire and fire workers.

"The labor reform law was a big deal because the labor market in Mexico is very rigid, and companies don't want to hire people since it's very expensive to fire them," Costa Buck says. "This is a reform that has been pursued by different governments in the past, and finally it was approved."

Despite its economic revival, Mexico faces significant challenges. While the country has made great strides in lifting living standards, more than half of Mexico's population remains in poverty. Organized crime continues to rear its head, though the country's homicide rate, which climbed for four straight years starting in 2008, began to subside in 2012. Political challenges also remain. Hopes for reform are so high that any setback in Peña Nieto's agenda could halt the rally in Mexico's stock market, which gained 18% in 2012 and outpaced the broader emerging markets universe.

Given the country's remarkable turnaround over the past few years, however, the chances of it reverting to its status as Latin America's chronic underachiever appear slim. "Mexico continues to make great strides toward modernizing its economy and reducing corruption," Costa Buck says. "While stocks have performed well recently, we think the long-term prospects for many of the companies in which we invest are promising."

Photograph from Getty Images

1 Unforeseen expenses can be mitigated by establishing an emergency fund.
2 Judith Ward, CFP®, a senior financial planner with T. Rowe Price, explains how you can guide children toward financial responsibility.
3Jerome Clark, portfolio manager of the
T. Rowe Price Retirement Funds.
4Strong research is the foundation for these municipal bond investments.
5To attain financial security in retirement, you have to make sure you save enough.
6 A lapse in contributions doesn't need to translate into lost income in retirement.
6 What do the changes in tax rates mean for investors?
8Download Our Apps Today
9 "Social insurance" originally was proposed when more people started to live beyond their ability to work effectively.
11Growing Opportunities in Developed and Emerging Markets.
12History provides a powerful reason for you to establish and maintain an allocation to stocks and bonds that is appropriate for your financial goals.
12Reviewing your estate plan routinely can help ensure that assets pass to your heirs according to your wishes.