Background: Tetralogy of Fallot (ToF) and Atrial Septal Defects (ASD) are the most common types of congenital heart diseases and a major cause of childhood morbidity and mortality. Cardiopulmonary bypass (CPB) is used during corrective cardiac surgery to support circulation and heart stabilization. However, this procedure triggers systemic inflammatory and stress response and consequent increased risk of postoperative complications. The aim of this study was to define the molecular bases of ToF and ASD pathogenesis and response to CPB and identify new potential biomarkers. Methods: Comparative transcriptome analysis of right atrium specimens collected from 10 ToF and 10 ASD patients was conducted before (Pre-CPB) and after (Post-CPB) corrective surgery. Total RNA isolated from each sample was individually hybridized on Affymetrix HG-U133 Plus Array Strips containing 38,500 unique human genes. Differences in the gene expression profiles and functional enrichment/network analyses were assessed using bioinformatic tools. qRT-PCR analysis was used to validate gene modulation. Results: Pre-CPB samples showed significant differential expression of a total of 72 genes, 28 of which were overexpressed in ToF and 44 in ASD. According to Gene Ontology annotation, the mostly enriched biological processes were represented by matrix organization and cell adhesion in ToF and by muscle development and contractility in ASD specimens. GSEA highlighted the specific enrichment of hypoxia gene sets in ToF samples, pointing to a role for hypoxia in disease pathogenesis. The post-CPB myocardium exhibited significant alterations in the expression profile