During the Serbo-Bulgarian War (1885) Dimitriev was one of the commanders of the Western Corps and participated in the successful Battle of Pirot. After the war he took part in an unsuccessful coup d'état; emigrated to Romania and became a member of the club of the Emigrant Officers. Later he emigrated to Russia and served in the Russian Army.