Question: how did erwin smith die?
Answer: After a scuffle with Eren and Mikasa, Levi is about to give Erwin the serum when he remembers Erwin's desire to give up his dreams and die with the recruits killed earlier. ... After he wakes up fully healed, Armin learns that Erwin died so that he could live.