The history of Marchegg is largely built on the gap between what the town was meant to be and what actually became of it. Ottokar II created a huge, secure centre on the March (Morava) river, intended to be the most important border fortress of his realm, yet the town never filled the space inside its own walls. It was the border, the very reason Marchegg appeared in the first place, that went on to shape its life again and again. Hungarian, Hussite and Ottoman armies came across it, trade passed along it, a railway was laid across it in the 19th century, and in the 20th century the Iron Curtain ran here. In the 21st century the same border is no longer a line of defence but a link between Austria and Slovakia.
Marchegg
Marchegg is a town of 3,173 inhabitants in the federal state of Lower Austria. It lies in the far east of Lower Austria, on the March (Morava) river, which today forms the state border with Slovakia here. This location determined the fate of the town almost from the moment it was founded.
The history of the town
Marchegg was conceived as a huge fortified royal residence on the frontier between the Austrian and Hungarian lands. It then changed hands many times, lived through Hungarian, Hussite, Ottoman and French invasions, and in the 20th century found itself right next to the Iron Curtain. The area, however, had been settled long before the town was founded. To the west of today’s historic centre there was a settlement called Kuenendorf, first mentioned in documents in 1115. It belonged to the Babenberg domains. After Marchegg was founded, part of the old settlement’s revenues was transferred to the new town.

The decisive events began in the middle of the 13th century. After the Babenberg dynasty died out in 1246, the Austrian lands became the object of a struggle between neighbouring rulers. King Přemysl Ottokar II of Bohemia gradually established his power here, but the eastern border remained a zone of constant rivalry with the Kingdom of Hungary. On 12 July 1260, Ottokar II won a major victory over the army of the Hungarian king Béla IV at the Battle of Groißenbrunn. A few years later, work began on a new town on the March, which was meant to secure the Bohemian king’s power on the eastern border of his territories.
The existence of Marchegg is reliably confirmed by documents from 1268. On 15 August, Ottokar II transferred the right of patronage over the local church to the knights of the Order of St John from Mailberg. 1268 is traditionally regarded as the year of the town’s foundation, although modern research allows that construction work may have begun somewhat earlier.
Marchegg was built practically from scratch as a carefully planned town. It was an extremely ambitious project. The area inside the fortifications covered about 55 hectares, and the wall surrounding it stretched for more than 3 kilometres. In what is now Lower Austria, only Vienna had a longer town wall.

The walls reached about 9 metres in height and were more than 2 metres thick at the base. Three main gates led into the town: the Vienna Gate from the west, the Hungarian Gate from the east and the Groißenbrunn Gate from the south. In the north-western corner stood the town fortress, the predecessor of today’s Marchegg Castle.
The scale of the fortifications shows that Ottokar saw much more here than an ordinary provincial town. Marchegg could serve as a border fortress, a major trading point and a place where troops could gather before campaigns into Hungary. However, this grand plan was never fully realised: the area inside the walls was never built up as densely as its founders had intended.
The centre of the new town was the Church of St Margaret. Its design was also linked to the overall geometry of Marchegg. Research has revealed an unusual feature: the chancel and the main body of the church are oriented slightly differently. It is assumed that their axes were aligned with the points of sunrise on different Easter days, which is why a small but noticeable bend appeared inside the building.
Just 10 years after its foundation, the political world for which Marchegg had been created disappeared. On 26 August 1278, the famous Battle of Dürnkrut and Jedenspeigen took place nearby. Ottokar II was killed, and the victory of Rudolf I of Habsburg opened the way to many centuries of Habsburg rule in Austria. Marchegg passed to new rulers but kept its importance as a border town.
As early as 1280, the local parish chronicle mentions a flood, the first known evidence of another constant threat for the inhabitants. The proximity of the March (Morava) made trade and contact with neighbouring territories possible, but at the same time left the town extremely vulnerable to the river’s floods. The borderland remained restless. In 1328, Hungarian troops seized Marchegg. In the 14th century the town itself developed rather slowly and never reached the population its founders had counted on.

Trade, especially in Hungarian wine, gradually became the main source of income. In the 14th century, Marchegg received the right to levy a toll on wine carts passing through the town. For each such cart, 12 Bohemian groschen were paid. This money mattered so much that in 1380 Duke Albert III specifically directed the revenue from the wine toll to the repair of the already damaged town wall.
There was also a connection across the March (Morava). At least in some periods of the Middle Ages there was a bridge over the river, and in the 16th and 17th centuries the existence of a bridge is documented. When there was no permanent crossing, people and goods were carried over on a large flat-bottomed boat that moved along a rope stretched across the river.
The 15th century turned Marchegg into a military arena once again. In 1426–1427, the Hussites seized the town and the fortress. In 1427 the invasion was accompanied by a major fire and serious destruction. For a huge but relatively sparsely populated border town, such blows were especially hard. Half a century later came another war. In 1477, Marchegg was taken by the troops of the Hungarian king Matthias Corvinus, who was at that time fighting Emperor Frederick III and controlled a considerable part of Lower Austria.
At the beginning of the 16th century, the town passed under the control of the famous military commander Niklas, Count of Salm. In 1502 he received Marchegg and the fortress as a pledge. Salm later became famous as one of the chief organisers of the defence of Vienna against the Ottoman army.
It was the war with the Ottoman Empire that proved a catastrophe for Marchegg. In 1529, the army of Sultan Suleiman I passed through the region on its way to Vienna. The town was taken, plundered and almost completely destroyed by fire. The Ottomans failed to capture the fortress, but it too suffered heavy damage. The destruction was so serious that Marchegg was almost depopulated. New settlers were invited to rebuild it, among them people from Swabia. The fortress remained practically uninhabitable for a long time and was restored only by 1568.
The calm, however, did not last long. At the turn of the 16th and 17th centuries, the castle was damaged again during the uprisings of Hungarian rebels. The religious conflicts of the Reformation reached Marchegg as well. The owners from the Salm and Landau families supported Protestantism and appointed their own Protestant preachers.

A new and fairly long period began in 1621. Emperor Ferdinand II handed the estate to Paul Pálffy von Erdőd, president of the Hungarian Court Chamber. Pálffy first received Marchegg as a pledge, then as property, and by 1630 the estate was finally secured to the family as a hereditary possession. The transfer came with a condition typical of the Counter-Reformation era: the new owner had to restore the normal functioning of the Catholic parish and remove the Protestant preachers. From then on, the Pálffy family determined the fate of Marchegg and the neighbouring estates on both sides of the March (Morava) for more than three centuries.
The new owners decided to rebuild the old medieval fortress radically. Around 1640, a considerable part of it was pulled down, with only a few old elements preserved, and a quadrangular moated castle rose to a design by the imperial military engineer Lambert Lambion. It was surrounded by a moat, and the residence now combined defensive and ceremonial functions.
The Thirty Years’ War brought destruction to Lower Austria once again. During the invasion of the Swedish troops, the town fortifications and the parish church suffered. Even after the end of the great European war, the situation on the Hungarian border remained restless. In 1680, Marchegg went through a great fire that destroyed 32 houses. Just 3 years later, the town again found itself in the path of the Ottoman army. During the second siege of Vienna in 1683, enemy forces occupied Marchegg. The Turkish war was followed by conflicts with the Hungarian Kurucs, participants in the anti-Habsburg uprisings. In 1689 the parish church was plundered, and in 1703–1705 Kuruc detachments again passed through Marchegg, looting and setting fire to the town.
After decades of war, the first half of the 18th century brought a completely different period. The Pálffy family turned the old border fortress into a Baroque aristocratic residence. Around 1714–1715, the architect Christian Alexander Oedtl began a major reconstruction of the castle, which continued in the following years. The medieval moat was filled in, some of the defensive structures were dismantled, and the southern façade acquired a stately Baroque appearance. The military fortress gradually became a summer residence and hunting palace. Members of the imperial family and the highest aristocracy came to Marchegg; the guests mentioned include Maria Theresa, Francis Stephen of Lorraine and the future Emperor Joseph II.
In the 18th century, the connection with the opposite bank of the March (Morava) also improved. In 1771, a new bridge over the river was built near Marchegg. Cross-border trade remained an important part of the town’s life. But natural and domestic disasters had not gone away. In 1793, a huge fire destroyed almost half of the town’s buildings. Another major fire occurred in 1802 and affected 71 residential buildings. In the same year, the last guard of the Vienna Gate stopped his service, a symbolic sign that the medieval system of town defence was finally losing its practical significance. The Napoleonic Wars once again reminded the world of Marchegg’s strategic position. In 1809, the town was occupied by French troops.

The 19th century gradually changed the character of the town far more than all the earlier reconstructions. The most important event was the arrival of the railway. In 1847, the line from Gänserndorf to Marchegg opened, connecting the town to the railway network in the direction of Vienna. On 10 August 1848, the railway from Marchegg across the March (Morava) to Pressburg, present-day Bratislava, began operating. So the town once again became an important point on the route between the Austrian and Hungarian lands, but now trains crossed the border instead of medieval merchants’ carts. The railway also changed Marchegg’s internal geography. Away from the old town, a new district, Marchegg-Bahnhof, began to develop around the railway station. Businesses and workers’ settlements gradually appeared there.
In 1849, Marchegg became the centre of a separate judicial district. In the following decades the first industrial enterprises appeared as well. Particularly prominent was the factory of the Tschinkel company, founded in 1876, which produced a coffee substitute from chicory. Engineering and other enterprises also operated, including some connected with gunpowder production.
Meanwhile, the medieval fortifications were gradually being taken down as they had lost their military value. The stones of the walls were used as building material and for reinforcing river banks. There was one curious exception during the Austro-Prussian War of 1866: on the north-eastern section of the wall, an embrasure was fitted and a cannon placed there in case the Prussian army tried to build a crossing over the March (Morava). In 1880, this section of the fortifications was demolished. After numerous fires in the town, a volunteer fire brigade was created in Marchegg in 1879.
By the end of the 19th century, another feature had emerged that later became part of Marchegg’s modern identity. In 1890, a local colony of white storks is mentioned in documents for the first time. Unlike the familiar nests on roofs and poles, many Marchegg storks built their nests in large old trees of the floodplain forest.

The beginning of the 20th century again forced the town to fight the river. Floods had occurred regularly since the Middle Ages, so in the spring of 1914 the authorities of Lower Austria decided on a large-scale regulation of the March (Morava): the channel was to be partly straightened and the settlements protected by dykes.
The First World War interrupted the project. In 1915–1918, there was a prisoner-of-war camp near Marchegg. The prisoners were used in agriculture and in construction work, including the building of elements of the future flood protection system.
After the collapse of Austria-Hungary, Marchegg again became a town on an international border. On the opposite bank of the March (Morava) there was now Czechoslovakia. The railway station took on special importance as a border point between Vienna and Bratislava. The life of the Pálffy family changed as well. After the First World War, Prince Nikolaus Pálffy lost his estates in Malacky (Malacka), now a Slovak town, and moved his main residence to Marchegg Castle.
Systematic construction of flood protection continued in the interwar period. In 1935, sections of the old northern and eastern town walls were incorporated into a new dyke, and in 1936 the main work was completed. After the Anschluss of Austria in 1938, Marchegg became part of Nazi Germany. A Reich Labour Service camp operated in the town, and the proximity of the railway border again gave the place strategic importance.

In the spring of 1945, the front reached Marchegg itself. The railway bridge across the March (Morava) was blown up, the town came under shelling, and several residential buildings were destroyed. In early April, Soviet troops entered Marchegg. The heavy consequences of the war were especially noticeable in the castle. The building was plundered and seriously damaged, and most of its historic interior disappeared. In 1947, Prince Ladislaus Pálffy died, and the Marchegg line of the family that had owned the town for more than three centuries came to an end.
For some time the fate of the huge palace remained uncertain, and its demolition was even discussed. The castle was saved by the efforts of local residents and monument protection specialists. In 1957, Marchegg, with the support of the state of Lower Austria, acquired it as municipal property. In 1959, the Lower Austrian Hunting Museum opened in the restored rooms. The former Pálffy residence acquired a new public function.
The town itself, meanwhile, once again found itself on the edge of a politically divided Europe. After the communist regime was established in Czechoslovakia, the March (Morava) became part of the Iron Curtain. The river, which for centuries had united two banks, turned into a strictly guarded state border, although rail traffic through Marchegg continued to exist.
It was in this period that the story of one of Austria’s most important nature conservation projects began. The floodplain forests near the castle had long served as the Pálffy hunting grounds, but by the middle of the 20th century the ecosystem of the March (Morava) had suffered seriously from river regulation, industrial pollution and intensive economic use.

In 1970, WWF and the town of Marchegg jointly acquired about 1,200 hectares of floodplain. On 1 June of the same year, the Marchauen-Marchegg nature reserve was ceremonially opened in the presence of the Federal President of Austria Franz Jonas, the president of WWF International, Prince Bernhard of the Netherlands, and the future Queen Beatrix. Just 3 years later, Marchegg’s railway station ended up at the centre of an event of a completely different kind.
In the early 1970s, Austria was the main transit route for Soviet Jews who were allowed to emigrate. Trains arrived from the USSR via Czechoslovakia and went through border control at Marchegg, after which the emigrants were sent to the Schönau transit centre and on to Israel or other countries.
On 28 September 1973, two Palestinian terrorists from the PLO-linked organisation as-Sa’iqa attacked such a train at Marchegg station. At first they took 6 people hostage; two managed to escape, leaving the attackers with three Soviet Jewish emigrants and an Austrian customs officer.
The hostages were driven by car to Vienna airport. The terrorists demanded that the Schönau transit centre be closed and that they be given the opportunity to leave Austria. After many hours of negotiations, the government of Chancellor Bruno Kreisky agreed to close the centre, seeking above all to secure the hostages’ release. The next day the captives were freed, and the terrorists were allowed to fly out of the country.
The attack in Marchegg was the first major act of international Palestinian terrorism on Austrian territory and caused a serious international political crisis. However, the emigration of Soviet Jews through Austria did not stop and continued under other arrangements.
The fall of the Iron Curtain in 1989 once again completely changed the meaning of Marchegg’s geographical position. The border, which for centuries had been a source of threat and for several decades an almost impenetrable barrier, began to turn into a basis for cross-border cooperation between Austria and Czechoslovakia, and then Slovakia. On 1 January 1992, the Marchegg judicial district, which had existed since the 19th century, was abolished, and its territory passed to the Gänserndorf judicial district.

The economic importance of the open border gradually grew. In 2001, the cross-border-oriented industrial park Ecoplus Wirtschaftspark Marchegg appeared, making use of the town’s position between Vienna and Bratislava.
The protection of the town from floods also continued. After a series of new hydraulic engineering projects, another major stage of the flood protection system on the March (Morava) was completed in 2013.
Particularly noticeable changes took place in the early 2020s. Marchegg Castle underwent a large-scale restoration and was adapted for the 2022 Lower Austrian State Exhibition, “Secrets of the Marchfeld”. The exhibition was visited by more than 145,000 people, and after it ended the renewed palace kept its cultural function.
Today a little over 3,000 people live in Marchegg. A considerable part of the medieval town remains easy to read in the modern landscape: long stretches of the wall, the Vienna and Hungarian Gates, the medieval church and the former town fortress, which the Pálffy family turned into a Baroque castle, have all survived.
You may also be interested in the following articles from our “History of Austrian Cities” series:
About the project:
My name is Anatoly, and I am the author of Emigrants.life. In 2017, my family and I emigrated from Krasnodar to Austria. My wife and I work in marketing, and we created Emigrants.life to help people who are thinking about moving abroad.
Emigrants.life publishes daily news about life and everyday matters in Austria and Europe. Follow us on Facebook, Instagram and Twitter, or join our Russian-language Telegram channel.
