How does lupen die in Harry Potter?

Professor Lupin died in the battle of hogwarts, when he was gored by a rouge unicorn.