Harald, unwilling to relinquish Denmark, attacked Sweyn and fought a long war. Harald sacked Hedeby in 1050, and also sacked Aarhus. Sweyn almost captured Harald in 1050, when Harald attacked the coast of Jutland and loaded his ships with goods and captives. Sweyn's flotilla caught up with the Norwegians and Harald ordered his men to throw out the captured goods, thinking the Danes would stop to get the goods. Sweyn ordered his men to leave the goods and go after Harald. Harald then ordered his men to throw the captives overboard. For them Sweyn was willing to let Harald slip away.