Question: when did they stop making the nissan xterra?
Answer: after the 2015 model year, 2015

The Xterra was discontinued in the U.S. after the 2015 model year.  Poor fuel economy, declining sales, and mandated upgrades to safety and emissions were cited as reasons.