Myocarditis is an inflammatory condition of the heart muscle, or myocardium, often caused by infections, immune reactions, or exposure to toxins. This inflammation can impair the heart's ability to pump blood and can lead to severe complications, including heart failure and sudden cardiac death.