The origins of the song are unclear, but it has been traced to an Irish-language song, "Do bhí bean uasal" ("There Was a Noblewoman"), which is attributed to the poet Cathal Buí Mac Giolla Ghunna, who died in 1745 in County Clare.
The song appears on a ballad sheet in Cork City in the mid nineteenth century in macaronic form. The Irish lyrics were about a man being cuckolded, a bawdy and humorous ditty. By contrast, the English lyrics are nostalgic.
With the Industrial Revolution, a linen-trade developed between County Antrim (where Carrickfergus is situated), and County Cork. It is possible the English lyrics came from snatches picked up in interactions between the Cork men and the Antrim men.
Robert Gogan suggests Carrickfergus may have evolved from at least two separate songs, which would explain why it does not have a consistent narrative. For example, the Ancient Music of Ireland, published by George Petrie in 1855, contained a song called "The Young Lady" which featured many but not all of the lyrics used in Carrickfergus. Gogan also refers to a recording of a song called "Sweet Maggie Gordon" which is kept in the Music for the Nation section of the US Library of Congress. It was published by Mrs Pauline Lieder in New York in 1880. It contains verses which are similar to Carrickfergus, but the chorus is closer to another Irish/Scottish folk song called "Peggy Gordon".
In modern times, "Carrickfergus" became known after actor Peter O'Toole related it to Dominic Behan, who put it in print and made a recording in the mid-1960s. The middle verse was allegedly written by Behan.
The song has been recorded by many well known performers including Ryan Kelly, Celtic Thunder, Paddy Reilly, Declan Affley, Joan Baez, Bryan Ferry, Dominic Behan, Charlotte Church, The Clancy Brothers and Tommy Makem, Brian Dunphy, De Dannan, Subway to Sally, Joe Dassin (as Mon village du bout du monde), The Dubliners, Garnet Rogers, Brian Kennedy, Declan Galbraith, Irish Stew of Sindidun, Lisa Kelly, Cedric Smith, with Loreena McKennitt on harp (as Carrighfergus), Órla Fallon, Van Morrison, Bryn Terfel, the Chieftains, Ronan Keating, Katherine Jenkins, Allison Moorer and Dexys. It was also adapted in Scooter's song "Where the Beats...". The song is a popular request at folk festivals and concerts, and was played at the 1999 funeral of John F. Kennedy, Jr. The song was more recently performed by Loudon Wainwright III over the closing credits of HBO's series Boardwalk Empire. Furthermore, the Russian singer-songwriter Aleksandr Karpov (a.k.a. "Aleksandr O'Karpov") translated the lyrics into Russian, recording a Russian version of "Carrickfergus", also titled "За синим морем, за океаном" (Za sinim morem, za okeanom - "Beyond the blue sea, beyond the ocean").
Closely related is the song "The Water is Wide", which has a similar tune and very similar lyrics in some lines. Recordings have been made by many people including Bob Dylan, Pete Seeger, The Seekers and two former members of The Byrds, Roger Mcguinn and Chris Hillman, who both did solo versions.
- The Dubliners, on the album Now (1975)
- Five Hand Reel, on the allbum For A' That (1977)
- Bryan Ferry, on the album The Bride Stripped Bare (1979)
- Loreena McKennitt, on the album Elemental (1985)
- Bryan Ferry, on the album Bête Noire (1987)
- Van Morrison and The Chieftains, on the album Irish Heartbeat (1988)
- Van Morrison, on the album Van Morrison: The Concert (1990)
- Órla Fallon, on the album The Water Is Wide (2000)
- Charlotte Church, on the album Enchantment (2001)
- Lisa Kelly, on the album Lisa (2003)
- The Chieftains, on the album Live from Dublin: A Tribute to Derek Bell (2005)
- Celtic Woman, on the album Celtic Woman: A New Journey (2007)
- Irish Stew of Sindidun, on the album Dare to Dream (2008)
- Ronan Keating, on the album "Songs For My Mother" (2009)
- Katherine Jenkins, on the album Daydream (2011)
- 10,000 Maniacs, on the album Twice Told Tales (2015)
- Damien Leith, on the album Songs from Ireland (2015)
- By Toutatis, on the album The Beasts (2015)
- Dexys, on the album Let the Record Show: Dexys Do Irish and Country Soul (2016)
- George Petrie: Ancient Music of Ireland, M. H. Gill, Dublin, 1855 (re-printed 2005, University of Leeds, ISBN 978-1-85918-398-4)
- 50 Great Irish Love Songs. Music Ireland, 2008
- "Александр О'Карпов | Песни и стихи | Каррикфергус". karpov.hole.ru. Retrieved 2016-09-11.