A congenital heart defect is a problem with the structure of the heart. It is present at birth. The defects can involve the walls of the heart, the valves of the heart and the arteries and veins near the heart. They can disrupt the normal flow of blood through the heart.