Ancient genealogy covers all of the centuries before about the 5th century AD (the start of Medieval genealogy). With some exceptions for societies that left copious records of people, it is even more difficult than medieval genealogy.
Familypedia covers it but with most pages getting or deserving a qualification about reliability of sources.