 During the 17th and 18th centuries Swedish, Transylvanian, Saxon, and Russian invasions wreaked havoc on the region.In 1793 western Mazovia, and two years later the rest of the region became part of Prussia (only the south-eastern portion was annexed by Austria).In 1807 it became part of the Duchy of Warsaw.