The catastrophic potato blight killed ~1 million and forced ~2 million to emigrate. While most went to the US/England, South Wales—accessible by cheap, short sea crossings from Cork, Waterford, Wexford—became a major destination. Cardiff's Irish-born population surged from ~2% (1841) to ~10% (1851).
Irish men filled the most dangerous, low-paid, casual labor—exactly what the boom needed.
Even "low" Welsh industrial wages exceeded Irish agricultural laborer earnings (where work existed). Remittances home supported families; chain migration followed.
Welsh Nonconformism was more accepting of Catholicism than English Anglican establishment or Scottish Presbyterianism. Irish Catholics faced less institutional hostility; they built churches (St. David's, 1842), schools, and communities.
Today, ~20% of Cardiff residents claim Irish ancestry. The St. Patrick's Day Parade is a major city event. The Wales Millennium Centre stands on the site of the "Irish Quarter." The Irish contribution built the docks, dug the coal, fought for unions, and shaped the city's identity.