To beat it you have to make the columns fall on top (use the explosive harpoon) and use the harpoon to damage it (it takes a long time) if it attacks you use the explosive harpoon in its cannons
Hitting the cannons with explosive harpoon disabled them, but dealt no damage last time I checked