 King John I of Sweden tried to establish a Swedish presence in the province of Wiek, but his troops were defeated by the Oeselians in the Battle of Lihula in 1220.Revelia, Harrien, and Vironia, the whole of northern Estonia, fell to Danish control.During the uprising of 1223, all Christian strongholds in Estonia save Tallinn fell into Estonian hands, with their defenders killed.