Max Lightwood dies in Chapter 18 of City of Glass (The Mortal Instruments #3).
He is killed by Sebastian Verlac (Jonathan Morgenstern) during the battle at the Accords Hall / Alicante near the end of the novel.
Correction: Previous answers incorrectly stated Max doesn't die or confused him with Arthur Dent (Hitchhiker's Guide). Max is Alec and Isabelle's younger brother; his death is a pivotal, tragic moment.