The :nth-child() CSS pseudo-class matches elements based on their position among a group of siblings.