First, she was Anna Karenina.

And why she threw herself under the train? Well, Tolstoy was a great moralist. For him faithlessness was a horrible sin only death can expiate.