A namespace groups related names (functions, classes, variables) under a label to prevent naming collisions.