Cardiac surgery is a specialized medical procedure performed on the heart or great vessels by a team of highly skilled surgeons. The surgery aims to repair or replace damaged or diseased heart valves, arteries, or other structures that affect the heart's function. The procedure may involve open-heart surgery, minimally invasive techniques, or robotic-assisted surgery.