A cardiologist specializes in treating diseases of the cardiovascular system — mainly the heart and blood vessels.