There are 64 possible configurations of hexagrams, broken or unbroken lines, representing yin and yang. They were found in the ancient Yi-jing text.
These are used for divination, and evolved out of the tortoise shell (oracle bone) culture, and are also a further development of the three-line trigrams.
The hexagrams developed during the Zhou dynasty (c.122-256 BCE).