Matthew Shepard
Courtesy Matthew Shepard Foundation
Matthew Shepard
Now playing
02:04
Matthew Shepard's mom: We've stepped back (2018)
WISH
Now playing
02:26
Police identify FedEx facility gunman as former employee
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Andrew Harnik/Pool/Getty Images
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Now playing
02:44
'National embarrassment': Biden reacts to mass shootings
Two military aircraft fly over the White House on April 16, 2021 in Washington, DC. The US Air Force F-22 fighter aircraft flew over Washington as part of the World War I memorial dedication ceremony.
Chip Somodevilla/Getty Images
Two military aircraft fly over the White House on April 16, 2021 in Washington, DC. The US Air Force F-22 fighter aircraft flew over Washington as part of the World War I memorial dedication ceremony.
Now playing
00:52
Watch military flyover interrupt a White House briefing
Shadae McCallum
Now playing
02:30
Soldier arrested after video shows him pushing a Black man
MOSCOW, RUSSIA - APRIL 15:  Russian President Vladimir Putin (L) talks to talks to Foreign Minister Sergey Lavrov during a meeting with Uzbekistan President Islam Karimov in the Kremlin on April 15, 2013 in in Moscow, Russia. Karimov is on a state visit to Russia. (Photo by Sasha Mordovets/Getty Images)
Sasha Mordovets/Getty Images
MOSCOW, RUSSIA - APRIL 15: Russian President Vladimir Putin (L) talks to talks to Foreign Minister Sergey Lavrov during a meeting with Uzbekistan President Islam Karimov in the Kremlin on April 15, 2013 in in Moscow, Russia. Karimov is on a state visit to Russia. (Photo by Sasha Mordovets/Getty Images)
Now playing
02:07
Russia to expel 10 US diplomats in 'tit-for-tat response' to Biden sanctions
CNN
Now playing
00:55
Hear Kamala Harris' remarks after Indianapolis mass shooting
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Toya Sarno Jordan/Getty Images
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Now playing
02:39
Governor settles with former campaign staffer who accused her of sexual mistreatment
Former Minneapolis Police officer Derek Chauvin chooses not to testify at his trial on April 15. Sitting to his left is defense attorney Eric Nelson.
Pool
Former Minneapolis Police officer Derek Chauvin chooses not to testify at his trial on April 15. Sitting to his left is defense attorney Eric Nelson.
Now playing
02:10
Derek Chauvin invokes 5th Amendment right at trial
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Manuel Balce Ceneta/AP
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Now playing
02:59
Women detail late-night parties with Gaetz
Pool
Now playing
06:07
Fauci fires back at Rep. Jim Jordan during heated exchange
President Joe Biden arrives to speak from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.
Andrew Harnik/Pool/AP
President Joe Biden arrives to speak from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.
Now playing
02:44
See Biden make historic announcement on US troops in Afghanistan
Avril Haines
POOL
Avril Haines
Now playing
01:09
DNI director gives two primary theories of where Covid-19 transmitted initially
THE BACHELORETTE - Fan favorite Becca Kufrin captured America's heart when she found herself at the center of one of the most gut-wrenching Bachelor breakups of all time. Now the Minnesota girl next door returns for a second shot at love and gets to hand out the roses, searching for her happily-ever-after in the 14th edition of ABC's hit series "The Bachelorette," premiering MONDAY, MAY 28 (8:00-10:01 p.m. EDT), on The ABC Television Network. (ABC/Craig Sjodin)
COLTON
Craig Sjodin/ABC
THE BACHELORETTE - Fan favorite Becca Kufrin captured America's heart when she found herself at the center of one of the most gut-wrenching Bachelor breakups of all time. Now the Minnesota girl next door returns for a second shot at love and gets to hand out the roses, searching for her happily-ever-after in the 14th edition of ABC's hit series "The Bachelorette," premiering MONDAY, MAY 28 (8:00-10:01 p.m. EDT), on The ABC Television Network. (ABC/Craig Sjodin) COLTON
Now playing
01:24
Former 'Bachelor' star says he is gay
american airlines plane preparations summer travel muntean pkg vpx_00000000.png
american airlines plane preparations summer travel muntean pkg vpx_00000000.png
Now playing
03:10
American Airlines prepares for summer travel demand surge
Family Photo/Getty Images
Now playing
04:11
Former officer charged with 2nd-degree manslaughter in Daunte Wright killing
Pool
Now playing
03:02
Use-of-force expert says Chauvin's actions were 'justified'
(CNN) —  

Matthew Shepard was finally laid to rest Friday at the Washington National Cathedral 20 years after being killed by two men because he was gay.

“It’s so important that we now have a home for Matt,” his father, Dennis Shepard, said at the start of the service. “A home that others can visit, a home that is safe from haters, a home that he loved dearly from his younger days in Sunday school and as an acolyte in the church back home.”

The homily was given by the Right Rev. V. Gene Robinson, the first openly gay priest to be consecrated a bishop in the Episcopal Church.

The National Cathedral in northwest Washington “considers LGBT equality the great civil rights issue of (the) church in the 21st century,” its website says. It hosted its first same-sex wedding in 2010.

Matthew Shepard’s death helped galvanized the civil rights movement for LGBT people and led to the Matthew Shepard and James Byrd Jr. Hate Crimes Prevention Act, also named for a black man killed by three white supremacists in Texas.

Shepard was a 21-year-old student at the University of Wyoming in October 1998 when he was robbed, beaten and tied to a fence and left for dead by two men he met in a bar.

He died six days later, on October 12, 1998, at a hospital in Colorado.

The two men were convicted of kidnapping and murder in the attack, which police said was initially a robbery. But, they said, Shepard was targeted because of his sexual orientation.

Shepard’s parents previously said the National Cathedral was the only place they believed their son’s remains would be safe from desecration.

“We didn’t want to leave him in Wyoming to be a point of pilgrimage that may be a nuisance to other families in a cemetery,” they said this month. “We didn’t want to open up the option for vandalism. So we had him cremated and held onto the urn until we figured out the proper thing to do.”

’Welcome home’

Jerry Morant told CNN the main space of the cathedral “was absolutely packed,” but overflow seating was available for late entries. Morant went to the service “for many reasons … in part, because his tragedy became a rallying cry for those of us LGBT people who grew up then,” he told CNN via Instagram.

Tim Saxon also attended to pay his respects. He told CNN he was a “closeted freshman in high school in rural Ohio” at the time of Shepard’s death, and that it “sent me deeper into that closet, believing that could easily have been me, and not him.”

“I came today to pay my respects to Matthew and his family,” Saxon said, “and to help heal the deep wounds caused by his death to not only me, but the entire LGBTQ family.”

Not surprisingly, the service was an emotional one. At times it even got the best of Robinson, who told attendees he had been crying for a week.

He celebrated not only Shepard’s life but also the dedication of his parents, who have worked for two decades to cement their son’s legacy and affect some positive change after their loss.

“You know, they could have so easily gone home and grieved privately,” he said. “But by the grace of God, they decided that they were going to turn this horrendous event into something good.”

Robinson also took time to reflect on the trials faced by America’s marginalized communities – whether they be LGBTQ or people of color – and recognized that they are far from over.

He drew particular attention to the violence that transgender people face, as he did at a vigil Thursday night.

“There are forces about that would erase them from America, deny them the right that they have to define themselves, and they need us to stand with them.”

Shepard, like everyone, was loved by God, Robinson said, and he imagined him on Friday sitting in God’s lap, wrapped in his arms, “and that’s all I need to know.”

In his closing, before carrying Shepard’s ashes to a private interment ceremony, Robinson said he had three things he would want to tell Shepard.

“Gently rest in this place. You are safe now.” he said, his voice breaking with emotion.

“Oh yeah, and Matt, welcome home.”

CNN’s David Williams, Emanuella Grinberg and Christina Maxouris contributed to this report.