Napoleon defeated the Prussian army in several key battles and established a semi-independent Duchy of Warsaw from 1807 to 1815 .
Semi-independent Duchy of Warsaw was established in 1819 by Louis de Fines .