Family and friends stand outside the church after funeral services for Saoirse Kennedy Hill.

Maria Shriver (center) with Anthony Shriver at the front of the church during funeral services for Saoirse Kennedy Hill.

Ethel Kennedy outside the church during funeral services for her grandaughter, Saoirse Kennedy Hill.

Paul Michael Hill (center) is comforted by Tim Shriver (left) during the funeral for his daughter, Saoirse Kennedy Hill.

Courtney Kennedy Hill (center) looks on as the casket of her daughter Saoirse Kennedy Hill is taken from the funeral.

Heartbroken family and friends gathered Monday morning to say goodbye to Saoirse Kennedy Hill, the granddaughter of Robert F. Kennedy who died of a suspected drug overdose in Massachusetts.

Paul Hill, Saoirse’s father, was inconsolable as he placed his hand on the hearse carrying his 22-year-old daughter’s body outside Our Lady of Victory Church in Cape Cod — less than five miles from the Kennedy family compound where she was found in cardiac arrest on Thursday.

A private burial will follow the funeral Mass, the Cape Cod Times reported.

A hearse arrived at the church in Centerville with a police escort just after 11 a.m., followed by a large motorcade of cars and buses carrying family members.

A touching poem in the program titled “When Saoirse’s Eyes Are Smiling” paid tribute to her infectious laughter and smile, Cape Cod Times reporter Jason Kolnos tweeted, and also drew on lyrics from the Beyoncé song “XO.”

The program said Massachusetts Rep. Joseph Kennedy III, Hill’s cousin, and Rep. Joseph Kennedy II, her uncle, would serve as pallbearers, according to the Boston Globe.

Kennedy matriarch and RFK’s widow Ethel Kennedy, 91 was pictured arriving at the church wearing a black dress and crucifix necklace and had to be supported by relatives as she was led into the church.

Grim-faced family members lined up to bid farewell to the hearse as it departed from the small church.

The influential family converged on the waterfront compound Thursday and have spent the last three days together, sharing stories about Hill and going on a sailing trip in her memory.

Uncle Robert F. Kennedy shared a photo of Hill’s dozens of cousin gathered around a fire pit. On Friday, he described his niece’s death as “a wound too large to ever heal.”

The Kennedy family reportedly spent months trying to get Hill into treatment for her depression before her death last week, a family friend told Daily Mail.

Hill was the only daughter of Paul and Courtney Kennedy Hill, the fifth child of RFK and Ethel, and is the latest member of the family to succumb to the so-called “Kennedy curse.”

Our Lady of Victory Church is regularly attended by members of the storied political clan.

The church is where John F. Kennedy’s daughter, Caroline Kennedy, married husband Edwin Schlossberg in 1986, and was where a memorial Mass was held for Sen. Ted Kennedy after his 2009 death.

Saoirse, who attended Boston College, wrote openly about her struggle with depression and, in the wake of her untimely death, has been remembered by family members as a fierce advocate for mental health awareness.

An autopsy report found no signs of trauma and her official cause of death is pending a toxicology report, the Cape and Islands District Attorney’s Office said.