The heart originates from the mesodermal germ layer. Specifically, progenitor cells from the cardiac mesoderm differentiate into various cell types, including cardiomyocytes, endothelial cells, and smooth muscle cells. These cells contribute to the formation of the heart's structure and function.