Ystad 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.