First, the major arteries (pulmonary artery and aorta) are detached from their abnormal positions. Next, they are switched and reattached to their correct anatomical positions. The surgeon also repositions the coronary arteries to ensure they supply the heart muscle with oxygen-rich blood.
The surgery is performed under general anesthesia and requires cardiopulmonary bypass, where a machine temporarily takes over the function of the heart and lungs during the operation.