Fish do not get STDs exactly as humans do, but they can contract sexually transmitted infections and diseases.
Transmission
Infections can spread through direct contact during spawning, contaminated water, or ingestion of infected fish.
Examples
Viral hemorrhagic septicemia, Ich, and Columnaris disease can spread through close contact or the environment.
While not identical to human STDs, diseases transmitted during breeding remain a real concern for fish.