When Poland was occupied by Prussia in 1794, it was split between Prussia and Russia. Prussia got most of Poland and turned it into a district. The capital city of the district was Warsaw. The province ceased to exist when Napoleon liberated it in 1807, and the territory became a part of the Duchy of Warsaw.