1. Introduction

2. The XXL Survey and the sample

3. Large-scale environment: the nearest neighbour distance method

4. Small-scale environment

5. X-ray clusters versus AGN agglomerates

6. Discussion and conclusions