Severus Snape was killed in the second part of Harry Potter and the Deathly Hallows (often referred to as Harry Potter and the Deathly Hallows – Part 2).
He was killed by Lord Voldemort in the Great Hall of Hogwarts during the final battle, after protecting Harry Potter from a curse meant for him.