The Battle of Fraustadt occurred on February 3, 1706, during the Great Northern War, when Swedish forces defeated a joint army of the Polish–Lithuanian Commonwealth, Saxony and Russia. Within the Second Partition of Poland in 1793, the region was annexed by the Kingdom of Prussia and incorporated into the province of South Prussia, until in 1807 it was awarded to the Duchy of Warsaw according to the Treaty of Tilsit.