A ventricular septal defect is a congenital heart defect in which there is an opening in the septum, the wall that separates the two lower chambers of the heart (ventricles). This allows blood to flow between the ventricles, which can impair heart function.