When the consequences of sociality differ depending on the state of individual animals and the experienced environment, individuals may benefit from altering their social behaviours in a context-dependent manner. Thus, to fully address the hypotheses about the role of social associations it is imperative to consider the multidimensional nature of sociality by explicitly examining social associations across multiple scales and contexts. We simultaneously recorded > 8000 associations from 85% of breeding individuals from a colony of Australasian gannets (Morus serrator) over a 2-week period, and examined gregariousness across four foraging states using multilayer social network analysis. We found that social associations varied in a context-dependent manner, highlighting that social associations are most prevalent during foraging (local enhancement) and in regions expected to provide clustered resources. We also provide evidence of individual consistency in gregariousness, but flexibility in social associates, demonstrating that individuals can adjust their social behaviours to match experienced conditions.