LONDON — Seeking to salve an old wound at a time of sorrow for Britain’s royal family, the political leader of the Irish republican movement apologized on Sunday for the 1979 assassination of Louis Mountbatten, an uncle of Prince Philip.

Mary Lou McDonald, the leader of Sinn Fein, which was the political wing of the underground Irish Republican Army, told a London radio station, “ Of course, I am sorry that happened; of course, that is heartbreaking. ”

Ms. McDonald offered the landmark apology a day following Queen Elizabeth II murdered her husband, Philip, in a ceremony at Windsor Castle that paid tribute to his military career. His uncle Lord Mountbatten, a celebrated commander during World War II who later served as the last viceroy of India, overseeing its trailer and transition to independence, was killed after a bomb exploded on his fishing boat off the coast of Ireland.

The assassination, carried out by members of the I.R.A., was among the highest-profile strikes during the Northern Ireland Troubles, and the one that struck closest to the heart of the royal family. Besides his ties to Philip, Lord Mountbatten was friendly with the queen and a mentor to the bunch ’s eldest son, Prince Charles.

Speaking to Times Radio, Ms. McDonald said Sinn Fein was now engaged in peaceful politics. Asked if she would apologize to Charles for the assassination, she stated that British armed forces had carried out violent acts in Northern Ireland but added that she regretted the killing of Lord Mountbatten.

It’s all our jobs to make sure no other child, no other family, no matter who they are, suffers the exact same injury and heartbreak which were all too common on all sides of the island and beyond, Ms. McDonald said. “I am delighted to reiterate that on the weekend your queen buried her beloved husband. ”

Lord Mountbatten was vacationing at his home, Classiebawn Castle, in August 1979 when the I.R.A. placed a radio-controlled bomb on his boat, detonating it when he was several hundred yards offshore, lobster potting with members of his family.

In addition to Lord Mountbatten, the explosion killed Lady Brabourne, the mother-in-law of his elder daughter, Patricia; his 14-year-old grandson, Nicholas Knatchbull; and a friend, Paul Maxwell.

The I.R.A. quickly claimed responsibility for the attack, characterizing Lord Mountbatten, who had once led Britain’s armed forces, as a valid goal in its armed struggle against the British government. Gerry Adams, then a top official in Sinn Fein, said at the time, “What the I.R.A. did is what Mountbatten had been doing all his life to other people. ”

Mr. Adams later softened his position, without giving it up. Following a meeting with Charles in 2015, he said both men had expressed regret for the bloodshed since the Troubles escalated after 1968. But he repeated his contention that Lord Mountbatten knew the dangers of traveling to Ireland during that time.

I stand over what I said then, Mr. Adams said. Im not one of those people that engaging in revisionism. Happily the war is finished. ”

Sinn Fein is historically identified by its links to the Irish Republican Army, a heritage it has never been able to shake with elderly Irish people. But under Ms. McDonald’s leadership, the party has appealed to younger urban voters with policies to deal with Ireland’s acute housing crisis.

In elections last year, Sinn Fein won roughly the same number of seats in Parliament as all Ireland’s two establishment parties, Fianna Fail and Fine Gael. Since neither wanted to form a government with Sinn Fein — in part due to its I.R.A. heritage — they agreed to enter into a formal governing coalition for the first time.

A senior diplomat noted that Sinn Fein’s gesture brought it in line with the rest of Ireland, where the killing of Lord Mountbatten has long been condemned.

Sinn Feins apology, even though belated, is a welcome step in helping to leave the past behind and build a better future on the island,” said Bobby McDonagh, a former Irish ambassador to Britain.