In 980, an Irish High King named Máel Sechnaill mac Domnaill defeated the Vikings of Dublin after a three-day siege of Dublin city. The Vikings surrendered, and the King then freed all slaves in the city.