A diaphragmatic hernia is a congenital defect where there is an abnormal opening in the diaphragm, the muscle that separates the chest cavity from the abdominal cavity. This opening allows abdominal organs, such as the stomach, intestines, liver, and spleen, to move into the chest cavity, which can interfere with lung development and function.