Umbilical cord prolapse occurs when the umbilical cord descends through the cervix and into the vagina before the baby, often during labor, leading to potential compression of the cord. This condition is a medical emergency due to the risk of compromised blood flow and oxygen supply to the fetus.