She was the sixth daughter of Siemowit IV, Duke of Masovia and Alexandra, a daughter of Algirdas, Grand Duke of Lithuania and sister of King Władysław II Jagiełło of Poland.
In Poznań on 24 June 1432, Maria married Bogislaw IX, Duke of Pomerania-Wolgast-Słupsk in Stargard, the first cousin and designated heir of Eric of Pomerania, King of Denmark, Norway and Sweden.
The marriage strengthened the alliance between Bogislaw IX and King Władysław II Jagiełło against the State of the Teutonic Order, who feared losing the coastal land connecting them with the Holy Roman Empire.
For this, the Order tried to prevent the wedding, and Bogislaw IX had to arrive in Poznań dressed like a pilgrim.
After her husband's death on 7 December 1446, Maria became the regent of his domains until 1449, when the male heir, ex-King Eric, returned from Gotland to rule after being deposed from his three Kingdoms 10 years earlier.