King John I, landed in western Estonian, but the garrison he left at Lihula was annihilated by the Estonians. The attacked by Estonians to the Swedes stronghold happened in summer of 1220. Estonian killed the entire Swedish garrison.
The Swedes had only 500 men in the garrisons, which attempted to fight its way out of Lihula once the town had caught fire. Only about 50 Swedes escaped to the Danish output of Tallinn.
After this blow to their ambitions, the Swedes turned their attention northwards and renewed their efforts to conquer the rest of Finland.
Battle of Lihula (Swedes and Estonian)