Not counting the individual person in the relationship, a parent is the first generation of the person's ancestors. A grandparent is the second generation (from the individual). A great-grandparent would be the third generation and so a great-great grandparent would be in the fourth generation of ancestors, and so on. Another way of putting it is a person's second great-grandparent is a grandparent's grandparent.