A ventriculoperitoneal (VP) shunt is a medical device that relieves pressure on the brain caused by fluid accumulation. VP shunting is a surgical procedure that primarily treats a condition called hydrocephalus.