In 1841 graduated from Saint Petersburg gymnasium. Then Dmitry Dmitrievich graduated from Saint Petersburg University (now Saint Petersburg State University) in 1846 and served in the Ministry of Foreign Affairs from 1847.
Dmitry Dmitrievich graduated from the Academy of Medicine and Surgery in 1862. In 1864 he continue his education in Berlin, Paris, Vienna and Prague Universities.
Dmitry Dmitrievich frequented the circle of the brothers Debu, then N.S. Kashkin’s circle and, from December 1848 - M.V. Petrashevskii’s Fridays. He served in the 2nd Saint Petersburg military-land hospital, in the Odessa quarantine, in the Kamyanets-Podolsky city hospital, in Kherson.