The lights turn on!

"Hello everyone it's time for Name that Book! A quiz, but don't make any mistake, it's a story too! One that is penned by your own choices... and knowledge! The story advances depending on whether or not you get the question in each chapter right! Now, let's get started!" said me.

Y/N sat alone on the bench one day. Y/N was trying to recall the name of a book. It involved people casting magic to kill an evil creature living deep inside the earth and also the protagonist died at the end and the creature successfully devoured everything in sight. A grizzly fate to behold. But Y/N cannot remember what it's called.

Or can they?

[Post the answer in the reviews and we'll see what happens next!]