The excellent knowledge of languages opened up for him a wide field of diplomatic activity, but he did not take advantage of this, but first he became an official of special assignments, and then the ruler of the chancellery to Prince N. G. Repnin, appointed in 1816 by the military governor of Ukraine.
A five-year stay here gave him the opportunity to once again indulge in his favorite archival pursuits, the fruit of which is his "History of Ukraine from joining it to the Russian state until the hetman's abolition, with a general introduction, the application of materials and portraits" (4 volumes, 1822; Tomas, Moscow, 1830; 3rd edition, 1842 ) The work undertaken on behalf of Prince Repnin, who even took an active part in the compilation of the first volume.
With regard to these persecutions, he compiled a detailed note entitled "Shemyakin Court in the Nineteenth Century"; Part of it was printed in the Russian antiquity of 1873.
During the last period of his life, Bantysh-Kamensky owned his "Biographies of Russian Generalissimo and General-Field Marshals" (4 parts, St. Petersburg, 1840 - 1841 ), for the publication of which Emperor Nicholas I granted 2000 rubles.
He was married three times and left a significant family, but neither service nor literary works enriched him, so that to repay his debts the emperor Nikolai Pavlovich granted his estate 10,000 rubles.