Ystad (ˈy̌ːsta(d); older Ysted) is a town and the seat of Ystad Municipality, in Scania County, Sweden. Ystad had 18,350 inhabitants in 2010. The settlement dates from the 11th century and has become a busy ferryport, local administrative centre, and tourist attraction. The detective series Wallander, created by Henning Mankell, is set primarily in Ystad.
In 1285, the town's name was written Ystath. Its original meaning is not fully understood, but the y probably is related to an old word for the yew tree, while stad means town or place.
After the time of Absalon, Bishop of Roskilde and Archbishop of Lund, peace was brought to the area in the 11th century, fishing families settled at the mouth of the river Vassa as herring fishing became the main source of trade. Ystad was not mentioned in documents until 1244, in a record of King Eric's visit to the town with his brother, Abel. A Franciscan monastery, Gråbrödraklostret, was founded in 1267, and Ystad joined the Hanseatic League in the 14th century.
The charter of 1599 gave the town the right to export oxen. Ystad, together with all of Scania, was transferred from Denmark to Sweden following the Treaty of Roskilde in 1658.
By 1866 Ystad had a railway connection and it was established as a garrison town in the 1890s. After World War II, ferry services to Poland and to the Danish island of Bornholm were opened.
In 1658, Ystad's population was about 1,600 and, by 1850 it had reached 5,000. The increased importance brought by the railway and the garrison in the 1890s drove the population above 10,000.
In his novel Inferno (1897), August Strindberg describes Ystad like so:
The little town to which I now betook myself lies in the extreme south of Sweden, on the seacoast. It is an old pirates' and smugglers' haunt, in which exotic traces of all parts of the world have been left by various voyagers.
Ystad is the setting of the Swedish crime drama Wallander.
Some of the main industries of the town are trade, handicraft and tourism, derived from being one of the best-preserved medieval towns in the Scania province and its association with the Wallander detective novels.