During the Polish-Hungarian aggression against the Kingdom of Ruthenia, Dmytro successfully defended governed territory with support of his brother-in-law Liubartas.