In 967 the island became controlled by Poland, under the country's first historic ruler, Duke Mieszko I. However, it has not been established if Wolin became directly part of Poland, or if it was a fief. Mieszko I encompassed the town of Wolin with defensive ramparts. Polish influences were not firm and they ended around 1007. In the following years, Wolin became famous for its pirates, who would plunder ships cruising the Baltic. As a reprisal, in 1043 it was attacked by the Norwegian king Magnus the Good.