Question: what episode does madara die?
Answer: And now to answer your question,Madara was “defeated” by Black Zetsu in episode 458 of Naruto Shippuden.