An underwater ecological study, using a new methodological approach, was carried out on the hard substratum near Banyuls-sur-Mer (Pyrénées-Orientales, France). The data obtained were analyzed with a computer program, which showed the existing relationships between some physical parameters and the distribution of the animals studied: the Octocorallia. Light proved to be the most important ecological factor in the underwater stations studied.