The eight-lined wrasse is a benthopelagic species which is found among rubble or live corals of seaward reefs, where it prefers areas where there are caves and crevices containing abundant invertebrate growth, They are found down to depths of at least 40 meters .