Horcruxes
What is a Horcrux? How it works and how it can be destroyed
How Horcruxes preserve a soul fragment, why Voldemort made them, and how the novels show them destroyed.

A Horcrux is a receptacle in which a wizard has hidden part of their soul. While that fragment survives, the death of the wizard's body cannot finish them completely. Voldemort pursues this form of survival and leaves fragments in several objects. The fullest explanation comes in Half-Blood Prince, when Harry and Dumbledore examine Tom Riddle's memories and his conversation with Horace Slughorn.
The damage behind it
Murder tears the soul. To make a Horcrux, the wizard exploits that rupture and encloses a fragment in a receptacle through dark magic. The novels do not provide full instructions for the process. Slughorn understands the principle and is appalled when young Riddle asks whether it could be repeated. We know the link between murder and a torn soul, not a recipe.
A Horcrux is more than an enchanted object. It keeps an actual fragment of its creator's soul. That is why the destruction of Voldemort's body at Godric's Hollow does not end his existence: fragments outside his body remain. He survives in a diminished state and later acquires a body again. A Horcrux does not automatically supply that new body on its own.
Riddle's chosen treasures
Riddle does not pick containers at random. He values things linked to Hogwarts, its founders and his own history. The diary carries the name he used as a student; the ring comes from the Gaunt family; the locket once belonged to Salazar Slytherin. Hufflepuff's cup and Ravenclaw's diadem continue the pattern of prestigious trophies. Nagini stands apart because she is a living snake.
Dumbledore reconstructs this pattern from memories and clues. That does not mean he knows every hiding place from the start. Part of Harry's search is discovering which object remains and where Voldemort put it. The individual objects appear in The seven Horcruxes.
The diary's warning
In Chamber of Secrets, Tom Riddle's diary answers Ginny Weasley and gradually controls her. A younger version of Riddle appears to Harry and grows stronger as Ginny weakens. Harry pierces the diary with a basilisk fang. Ink pours from its pages, and Riddle's figure disappears.
Harry does not yet know that he has destroyed a Horcrux. The scene shows that a soul fragment can act on another person and that its container can be destroyed.
Destroying the container
The receptacle must be damaged beyond magical repair sufficient to sustain the fragment. The books show several means: basilisk venom, the Sword of Gryffindor after it has absorbed that venom, and cursed fire. The diary falls to a fang; the ring, locket and Nagini to the sword; the cup to a fang; and the diadem to the fire in the Room of Requirement.
Hiding an object or cracking it superficially is not enough. The locket, for example, survives ordinary attempts and exerts a harmful influence on those who carry it. Harry, Ron and Hermione have to learn how to open it and use the sword. Living close to the object also wears them down.
Harry and the number seven
Riddle wanted a soul divided into seven parts because he considered the number powerful: one part in his body and six deliberate Horcruxes. He never planned to make Harry one. When he tried to kill the infant, a piece of his damaged soul attached itself to the child. In Deathly Hallows, Dumbledore confirms that Harry carried this fragment without Voldemort knowing.
This is why the title The seven Horcruxes can be confusing. Seven external hosts are eventually identified if Harry is included, but only six were deliberately made as Horcruxes. Harry was not an object prepared according to Riddle's plan. The fragment within him dies when Voldemort's curse strikes him in the forest, while Harry returns.
Remorse
The books indicate that only genuine remorse could repair a torn soul, and that the process would be agonizing. It is not an easy spell that erases murder. In their final confrontation, Harry gives Voldemort a chance to feel remorse; he does not take it.