Airlines board in batches so the aisle doesn't jam. The order usually runs: pre-boarding for people who need extra time or help, then premium cabins and frequent flyers with status, then economy in groups, with basic economy last. Some airlines group economy by seat position, back to front or window first; others by fare and status. Each airline sets its own order.
The group decides one thing that matters: overhead bin space. On full flights, the last groups are the ones asked to gate-check their cabin bags. Earlier boarding can often be bought, or comes with loyalty status or a higher fare.
Families with young children, people with disabilities and anyone who needs extra time can usually ask to pre-board; policies differ, so ask at the gate before boarding starts. Turning up before your group is called usually earns a polite trip back to the queue. The group isn't the same as the check-in sequence number, which only records the order people checked in.
Boarding 10:45 · Group 4 · Seat 27C
Where you'll find it
On the boarding pass near the boarding time, labelled Group, Zone or Boarding group. Gate screens and announcements say which group is boarding.