Intracerebral hemorrhage (ICH) poses significant disability and mortality risks and perihematomal edema (PHE) plays a crucial role in ICH prognosis. The ApoE-epsilon 4 allele has been implicated in exacerbating PHE and influencing neurological recovery post-ICH, yet, this specific association has not been explored much. This study aimed to investigate the correlation between ApoE-epsilon 4 allele, PHE, and clinical prognosis in patients with ICH. We conducted a prospective observational cohort study at the Affiliated Hospital of Guizhou Medical University from January 2020 to December 2023. We enrolled patients with supratentorial ICH patients and analyzed ApoE gene alleles, clinical baseline data, blood biochemical indices, and imaging findings. We considered ApoE-epsilon 4 carrier status as an exposure variable and compared PHE volumes between ApoE-epsilon 3 (epsilon 3/epsilon 3) and ApoE-epsilon 4 (epsilon 2/epsilon 4, epsilon 3/epsilon 4, epsilon 4/epsilon 4) carriers. We also compared clinical and imaging characteristics between the good prognosis group (modified Rankin score 0-3) and the poor prognosis group (modified Rankin score 4-6). Finally, we examined the association between ApoE epsilon 4 and PHE volume and poor prognosis at discharge. Among 153 patients, 63 (41%) carried ApoE-epsilon 4. ApoE-epsilon 4 carriers had significantly higher PHE volumes at 24 h and on days 5-7 compared to ApoE-epsilon 3 carriers. The poor prognosis group had a higher proportion of ApoE-epsilon 4 carriers (53.9% vs. 28.6%, p = 0.001) and increased PHE volumes. ApoE-epsilon 4 (OR 2.438, p = 0.02) and PHE (OR 1.048, p = 0.015) were independent predictors of poor prognosis. The area under the curve for ApoE-epsilon 4 was 0.627, and for PHE volume, it was 0.698. The ICH patients carrying the ApoE-epsilon 4 allele show severe PHE and poorer outcomes. Carrying ApoE-epsilon 4 gene is an independent predictor for poor outcomes in patients with ICH.Trial registration: ClinicalTrials.gov, NCT05687201. Registered June 1, 2023, Effect of Apolipoprotein E on the Prognosis of Patients with Intracerebral Hemorrhage-Full Text View-ClinicalTrials.gov "prospective registered".