Napoleon defeated the Prussian army in several key battles and established a semi-independent Duchy of Warsaw from 1807 to 1815 .
Napoleon managed to defeat the Prussians thanks to his genius war ability .