Barrow-wight

Barrow-wights are wraith-like creatures, based on the Old Norse Draugr. Barrow refers to the burial mounds they inhabited and wight is an Old English word for "human being" or "person" (it does not mean "spirit" or "ghost"; it is cognate to modern German "Wicht", meaning "unpleasant person"). Tolkien borrowed this concept from Norse mythology, see e.g. Waking of Angantyr and Hrómundar saga Gripssonar.

Evil spirits of some kind (perverted Maiar or possibly spirits of Orcs, fallen Avari, or evil Men), they were sent to the Barrow Downs by the Witch-king of Angmar in order to prevent a resurrection of the destroyed Dúnedain kingdom of Cardolan.

They animated the dead bones of the Dúnedain buried there, as well as older bones of Edain from the First Age which still were buried there.

During the War of the Ring, Frodo Baggins and company were trapped in the Barrow-downs, and nearly slain by wights. It has been speculated that Frodo was trapped in the cairn of the last prince of Cardolan. Frodo sliced off the wight's hand; then, when the wight extinguished the dim light in the cavern where the company was imprisoned, Frodo called upon Tom Bombadil, who performed a sort of exorcism on the barrow.

Other versions of the legendarium
Due to his inspiration from Hrómundar saga Gripssonar, during the writing of The Lord of the Rings (see The History of The Lord of the Rings) Tolkien at first foresaw a link between the wights and the Ringwraiths, initially describing the Black Riders as horsed Wights, but the suggestion that they were the same kind of creatures was dropped in the published work. In the final work there remained a link between them: the wights were now spirits sent by the Witch-king.