Cardiopulmonary bypass is a form of external circulation that replaces the function of the heart and lungs during surgery, allowing surgeons to operate on a motionless and bloodless field. It aims to oxygenate blood and remove carbon dioxide while maintaining circulation, as well as enabling systemic cooling and re-warming to facilitate complex cardiac surgery.