Mexico has become the most attractive place in North America to build new automobile factories, a shift that has siphoned jobs from the United States and Canada, yet helped keep car and truck prices in check for consumers.

In the past two years, eight automakers have opened or announced new plants or expansions in Mexico. Just last week, Toyota announced a new plant in Guanajuato to build the popular Corolla, work now done in Canada, while Ford unveiled plans for Mexican engine and transmission factories.