Moorish idols mostly feed on
sponges, with a study on gut content finding sponges make up about 70% of the total weight consumed by Moorish idols, They are normally found in small groups of 2 or 3 individuals but they can also be solitary or gather in large
schools.
Reproduction These fish are pelagic
spawners. The males and females release sperm and eggs into the water, and the eggs drift away on the current following fertilization. The preflexion larval stage of the Moorish idol has no fin spines, soft rays, or internal support structures for the fins. However, in a 3.2 mm specimen there is the start of the dorsal and anal fins. The larger preflexion specimens have mostly cartilaginous
supraoccipital crests with 23 to 26 curved dorsal spines. Also, pigmentation increases with size in the preflexion larvae. The postflexion larval stage refers to the stage that includes the formation of the caudal fin and fin rays. This is the stage right before juvenile and settlement into their habitat. A great diversity of large predatory fish species take this opportunity to hunt the aggregations while they are still on the reef, often forming multi-species hunting packs. This notably includes packs of hundreds of
grey reef sharks, which will also follow the Moorish idols when a school moves away from the safety of the reef to spawn. Once the Moorish idols enter the open water, the grey reef sharks attack in a tight cluster and enter a
feeding frenzy, eventually eating most of the school. Only a few Moorish idols in a school may survive the sharks. As a result of the extremely high mortality rate, these spawning events have been described as seeming "suicidal". ==Conservation status==