In Pisa, in 1863, he met Leone Raffalovich, a businessman from Odessa. After a short engagement, he married Leone's daughter Elena on 13 August, and in 1865 their daughter Laura was born. Their different natures meant that the couple drifted apart, and in 1872 Elena left the family to settle in Venice. Laura married Luigi Adriano Milani, and Domenico Comparetti, wishing that their last name should be was transmitted to her daughter's male descendants, got the royal concession to the addition of his name to those of the Milani grandchildren. His great-grandson was Don Lorenzo Milani.