The Ó Fearghuis name was conceived in the 7th century, when
Saint Máedóc of Ferns baptised and renamed the sons of
Ailill, who was a 7th-great-grandson of
Niall,
High King of Ireland, as per his genealogy recorded in the
Lives of Irish Saints, which reads: "Ailill, son of Rechtaide, son of Eitin, son of Felim, son of Caol, son of Áed, son of Ailill, son of Erc, son of Eógan, son of
Niall of the Nine Hostages." The sons of Ailill were Fearghus, who is the progenitor of the Ó Fearghuis, and
Faircheallaigh, and they were made Saint Máedóc's heirs to
Rossinver Abbey and
Drumlane Abbey, respectively. The Ó Fearghuis were later based at Roscam in
Clann Fhergail, and in the 13th century, they moved to what became
County Mayo. In the 14th century, members of the family created the
manuscript which came to be known as the
Liber Flavus Fergusiorum. ==Authorship==