The purpose of this prospective single-center trial is to compare the safety and diagnostic value of contrast medium-enhanced cardiac magnetic resonance imaging and transesophageal echocardiography in patients with acute ischemic stroke.