Question: what episode does will die?
Answer: In episode 15 of the fifth season, he is shot and killed in the courtroom by his client Jeffrey Grant (played by Hunter Parrish). Following his death, he appeared in dream sequences in episodes "Minds Eye" and the series finale, "End".