Archduchy of Austria
With the whole Innviertel region Sankt Martin belonged to the Duchy of Bavaria (Electorate from 1623) until it was ceded to the Archduchy of Austria according to the 1779 Treaty of Teschen. After the Napoleonic Wars, Sankt Martin was incorporated into the Austrian crown land of Upper Austria. The present-day municipality was established in 1850.