You can combine several objects into a group so that they are treated as a single unit. You can then move or transform the objects without affecting their individual positions or attributes. For example, you might group the objects in a logo design so that you can move and scale the logo as one unit.
Groups can also be nested—grouped into subgroups within larger groups. Use the Selection, Direct Selection, and Group Selection tools to select different levels of a nested group’s hierarchy.
If you’re working with a stack of overlapping objects, and you group some objects that aren’t adjacent in the stacking order, the selected objects will be pulled together in the stacking order, right behind the frontmost selected object. (For example, when objects are stacked as A, B, C, D from front to back, and you group B and D together, the stacking order becomes A, B, D, C.) If you group objects that exist on different named layers, all of the objects move to the frontmost layer on which you selected an object. Also, the objects you select must either be all locked or all unlocked.