Here's the breakdown:
* Bellatrix Lestrange, a Death Eater, threw a knife at Harry, intending to kill him.
* Dobby intervened and shielded Harry from the fatal blow, taking the curse meant for Harry upon himself.
* Dobby's death was a selfless act of love and loyalty towards Harry.
Dobby's death was a tragic moment in the series, showcasing the immense sacrifice and love that even a house-elf could show for a human. It underscored the power of friendship and the devastating consequences of bigotry and prejudice.