Bioluminescence
Attracting mates is an important function of bioluminescence. This is seen in fireflies, which use periodic flashing in their abdomens to attract mates in the mating season. In the marine environment this has only been well-documented in certain small ostracod crustaceans, but may be quite common.