Question: how did ymir die attack on titan?
Answer: After being brought back to Marley, Ymir willingly allowed herself to be killed and was eaten by Marcel's brother, Porco, transferring the power of the Jaw Titan to him.