Zhang Zai was born in 1020 CE in Hengqu, province of Shaanxi. In his childhood he showed interest in military affairs, but began to study the Confucian texts. Like many Song philosophers, Zhang was initially frustrated with Confucian thought and studied Buddhism along with Daoism for a number of years. But, he decided that "The Way" could not be found in Buddhism or Daoism and resorted back to Confucian texts. His exploration of diverse religious thought had a major impact on his own ideals. In 1056 CE Zhang lectured on the Classic of Changes, which would be known as one of his most memorable works. It is suspected that around this time Zhang had first met the Cheng brothers. After passing the highest level of the civil service examinations, he held several minor government posts.