Yegor Yegorovich Wagner's grandfather was August Wagner, a pharmacist from
East Prussia. In search of happiness, young August went to distant Russia, to the city of Kazan, where he opened his own pharmacy. His affairs were going well, which was largely facilitated by high qualifications and personal charm. After several years of work, August became a wealthy man and married a local girl from a German family. The marriage was happy, but short-lived - August Wagner died suddenly, leaving his wife Yegor's son and daughter Maria. The widow married the pharmacist Bachmann. He warmly treated to orphaned children and replaced their own father. When little Yegor Avgustovich grew up, he was sent to a gymnasium. He studied diligently and pleased his relatives with his successes. The young man received his higher education at
University of Kazan, choosing legal sciences as his specialty. All his life, Yegor Avgustovich Wagner was in the government service - first he worked in the specific, and then in the excise department. On official business, he constantly had to travel around the country. He began to lead a settled way of life only when he was offered a permanent job in Kazan. Yegor Avgustovich, like his father, had the gift of attracting people to him. Clever, kind, charming - that's how he remained in the memories of friends and acquaintances. Shortly after graduating from the university, Yegor Avgustovich married Alexandra Mikhailovna Lvova, the daughter of the director of the Kazan Gymnasium. Alexandra Mikhailovna was distinguished by special warmth, was fond of music and theatrical art. Possessing a pleasant voice, she sang at family celebrations and participated in home performances. On December 9, 1849, a son was born into the young Wagner family - the future scientist, named after his father Yegor. Less than a year after the birth of the boy, his mother died from
tuberculosis. Since the father of little Yegor was away because of work all the time, his grandfather and grandmother took care of the boy. They loved their grandson with all their heart, although the lively, cheerful little boy gave them a lot of trouble. Yegor inherited artistic inclinations from his mother - he loved to read the poems of famous poets expressively, especially
Pushkin and
Lermontov. Meanwhile, Yegor Avgustovich returned to Kazan for permanent residence and married a second time. He wanted to take his son to him, but he refused, because he was little acquainted with his father and wanted to stay with those who raised him. Yegor Avgustovich understood how painfully it would be for the boy to get apart with his grandparents, and agreed that his son would continue to live in the Bakhman family. When the old pharmacist Bachman died, Yegor was sent to a private boarding house, located near the city of
Venden in the Livonian province (the territory of present-day Latvia). The boarding school was a closed educational institution with a strictly regulated regime and strict discipline. For Yegor Wagner, accustomed to unlimited freedom and complete independence, the transition to life in the new conditions was quite painfull, and at first conflicts often occurred. The boy studied very diligently, the teachers spoke flatteringly about his abilities and constantly noted him as one of the best students of the boarding school. However, he was never able to fully get used to the strict routines of the boarding school, and in the winter of 1865, a year before the end of the course, sixteen-year-old Yegor Wagner fled from the boarding house to his father's house. There was barely enough money to get to Nizhny Novgorod, and Yegor had to walk the rest of the way to Kazan along with the convoy, which moved along the
Volga. Yegor Avgustovich met his son without a word of reproach and only joked: "Well, brother, you are a perfect Lomonosov, just the opposite: he fled with a convoy to study, and you ran away from study." == University of Kazan==