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. This condition occurs when excess cerebrospinal fluid (CSF) collects in the brain’s ventricles.