His education took place under the tutelage of enlightened teachers, including Simeon Polotsky, a great poet and dramatist who came from the Polish-Lithuanian Commonwealth. He received a thorough education, learned German and Dutch in his youth, and was interested in technical and military issues.