How was the viking longship used?

They was used for viking raids.