The cobia is normally solitary except for annual spawning aggregations, and it sometimes congregates at reefs, wrecks, harbours, buoys, and other structural oases. It is pelagic, but it may enter estuaries and mangroves in search of prey.