Andrei's paternal grandfather Aleksandr Karlovich Tarkovsky (in ) was a Polish nobleman who worked as a bank clerk. His wife Maria Danilovna Rachkovskaya was a Romanian teacher who arrived from Iași. Andrei's maternal grandmother Vera Nikolaevna Vishnyakova (née Dubasova) belonged to an old Dubasov family of Russian nobility that traces its history back to the 17th century; among her relatives was Admiral Fyodor Dubasov, a fact she had to conceal during the Soviet days. She was married to Ivan Ivanovich Vishnyakov, a native of the Kaluga Governorate who studied law at the Moscow State University and served as a judge in Kozelsk.