A heart defect, also known as a congenital heart defect, is a problem with the heart's structure and function that is present at birth. It can affect the heart's ability to pump blood effectively, and in some cases, can lead to serious health complications if left untreated.