Myocarditis is an inflammation of the heart muscle which is most often caused by a viral infection (viral myocarditis). Though most cases are not fatal and can be treated, a severe case of myocarditis can cause dilated cardiomyopathy which is a much more serious condition.