The earliest known Irish surname is O’Clery (O Cleirigh); it’s the earliest known because it was written that the lord of Aidhne, Tigherneach Ua Cleirigh, died in County Galway back in the year 916 A.D.

In fact, that Irish name may actually be the earliest surname recorded in all of Europe.

Until about the 10th century in Ireland, surnames were not passed down from generation to generation. Instead, surnames were patronymic, or based on someone’s father’s name. A person was identified by his given name plus “mac,” meaning “son of,” followed by his father’s name.

For instance, Brian mac Colum was Brian, son of Colum. Brian’s son might be Finnian mac Brian (Finnian, son of Brian).

The female form of “mac” is “nic,” shortened from the Irish iníon mhic.

Alternatively, the prefix “o” was sometimes used in place of “mac” and meant “grandson of” or “descended from.” If Colum was well known, his grandson might have gone by the name Finnian O Colum.

There were no fixed surnames, so a surname changed every generation or two. That can make tracing your family tree a bit more complicated!

Read more: The top ten most popular Irish surnames

But even without hereditary surnames, those names still hold clues. For example, that person named O’Clery or O Cleirigh (or Ua Cleirigh) was the grandson or descendant of someone named Cleirigh. (“Ua” was an earlier form of “O.”)

It was around the 1100s, as the population was increasing, that people in the upper social classes started taking hereditary surnames (those that remain fixed over the generations); others didn’t need surnames, or even get around to them, until the 1500s.

Another strong influence on Irish names came with the Norman invasion of 1169, when a lot of Anglo-French names came marching into Ireland (this, too, is when the Latin-derived prefix “Fitz,” meaning “son of,” first came into Irish names). It’s from this influence that some of the names we now consider Irish — Costello, Power, Burke, and others — first entered the scene.

And in the 1500s, the influence of the English was beginning to make itself felt in Ireland. Ireland was experiencing religious persecution and invasions, and many changes came to the island — including the changing of Irish names, steadily but surely over the ensuing years, into ones that sounded more English.

An example of this was the common Irish surname Mac Gabhann, which meant “son of a smith.” Some Mac Gabhanns, living in County Cavan, had their name translated to Smith and it remained that way. Others outside that area resisted, but the spelling became anglicized and they became Mac/McGowans. This was very common.

Also, in many cases the prefixes Mac and O were done away with.

Many surnames originated as occupational or descriptive names. That earliest known name, O Cleirigh (O’Clery), was someone descended from a clerk; Mac an Bhaird (Ward) was son of a bard; and Mac Labhrain (MacCloran) was son of a spokesman.

Descriptive names were names that described the first person to take them. The first person with the name Dubh (Duff) (“black” or “dark”) was probably dark featured. Other descriptive surnames include Bane (“white”), Crone (“brown”), and Lawder (“strong”).

Irish toponymic surnames, deriving from a place where the original name bearer once lived, are rare. They include Ardagh, Athy, Bray, Kelly, Sutton, and a few others.

Are you searching for your Irish name’s history? You might find it here: The top 300 Irish family names explained

For more information visit Ancestry.com’s blog here.