Following Napoleon Bonaparte's victory in the War of the Fourth Coalition and the Greater Poland Uprising of 1806 the Province of New East Prussia was ceded according to the 1807 Treaties of Tilsit: