They secured the points thanks to substitute Lozano, who scored with a header just two minutes after replacing Juergen Damm.
The Mexicans lead the six-team group with 17 points and cannot now finish outside the top three spots that guarantee a place in Russia next June.
"Congratulations to MEXICO who have qualified for Russia 2018 thanks to Hirving Lozano's winner," FIFA said on their website.
World Cup Qualification CONCACAF
West Ham's Lanzini ruled out of World Cup for Argentina
08/06/2018 AT 10:45
The Mexicans are three points ahead of second-placed Costa Rica and nine points clear of the United States and Honduras.
The U.S. and Honduras meet on Tuesday, which guarantees that Mexico can not be overtaken for one of the top three places in the group.
The fourth-placed team goes into a play-off with a side from the Asian confederation.
The qualification is Mexico's seventh in succession and 16th overall, more than any other countries bar Brazil, Germany, Italy and Argentina.
World Cup Qualification CONCACAF
Arena resigns as manager of U.S. men's team
13/10/2017 AT 15:12
World Cup Qualification CONCACAF
Costa Rica qualify for World Cup with last-gasp goal against Honduras
08/10/2017 AT 00:06