PUEBLA, Mexico—Mexico is taking center-stage in the production of cars, where lower costs and skilled workers are reordering the global auto market.

Six years ago, Mexico was the world's ninth largest exporter of cars. Today the country is ranked fourth—behind Germany, Japan and South Korea—with exports expected to total more than 2.14 million vehicles this year.

One...