Croatia thus did not manage to defend the European title which it won two years ago in Split, while for Spain it was the first time to become the European champion in this sport.
Earlier on Tuesday, Italy won the bronze after it defeated Hungary 12-7 in Zagreb, too.
Croatia was the first host of two successive European championships, as the last one was in Split in September 2022.
This tournament started in Dubrovnik on 4 January.