In 1798 when the Batavian Republic formed, the province of Holland and West Friesland was divided differently: it fell under the département of Texel (from the Vlie to the Rhine). In 1807 under Napoleon, the province was subdivided into two separate provinces; Amstelland and Maasland, but this organization ended in 1814. In 1815 Holland with Westfriesland became a province of the Kingdom of the Netherlands. To reduce the dominance of the province of Holland, in 1840 under King Willem I, it was split into the provinces of Noord-Holland and Zuid-Holland. Since then Wieringen has been within the province of Noord-Holland.