Objective To compare the value of magnetic resonance imaging(MRI)and computed tomography(CT)in the diagnosis of cerebral infarction complicated with cerebral hemorrhage.Methods A total of 76 patients with suspected cerebral infarction and cerebral hemorrhage admitted to Yangjiang People's Hospital from January 2022 to April 2023 were selected as the study objects.MRI and CT were performed in the patients.The results of cerebral angiography were used as the gold standard to compare the diagnostic efficiency of MRI and CT and the detection accuracy of lesions of different locations and diameters.Results Cerebral angiography was positive in 74 cases and negative in 2 cases.MRI was positive in 74 cases and negative in 2 cases.CT examination detected 64 positive cases,12 negative cases;The diagnostic accuracy and sensitivity of MRI were 97.37%and 98.65%,respectively,higher than those of CT examination 81.58%and 83.78%(P<0.05).There was no significant difference in diagnostic specificity between MRI and CT(P>0.05).The diagnostic accuracy of MRI was higher than that of CT(P<0.05).When the lesion diameter was less than 2 mm,the detection accuracy of MRI was higher than that of CT(P<0.05).There was no difference in detection accuracy between MRI and CT when the lesion diameter was>2 mm(P>0.05).Conclusion Both MRI and CT are of high value in the diagnosis of cerebral infarction complicated with cerebral hemorrhage.MRI has a higher detection accuracy for lesions of different locations and diameters,and has obvious advantages in diagnosis.