Since ancient times, war at sea had been fought much like on land: with melee weapons and bows and arrows, but on floating wooden platforms rather than battlefields.
Gunports cut in the hull of ships had been introduced as early as 1501.