There are different theories that it originated in the Way of Yin and Yang or it came from China, but there are no written materials to show the exact history of how it started.
陰陽道を始源とするとも、中国起源を持つとも言われるが両者共に明確な経緯を示す資料は無い。