Similar sponge-associated bacteria can be acquired via both vertical and horizontal transmission.