WASHINGTON — Darline Graham, the sister of the late South Carolina Sen. Lindsey Graham, was sworn in to the Senate on Tuesday afternoon — filling the seat just three days after her brother’s death.

Graham was appointed by South Carolina Gov. Henry McMaster on Monday to fill the remaining months of her brother’s current term and arrived in Washington just a day later to take the oath of office. Senators, staff and family members looked on in the packed chamber, many of them visibly emotional, as Darline Graham was sworn in by Iowa Sen. Chuck Grassley, the most senior Republican senator.

A separate special election will be held next month to pick a new Republican nominee in the general election for Lindsey Graham’s seat, as he had been seeking a fifth term this year.

Darline Graham, who will be the state’s first female senator, has not previously held public office. She has worked as an optician and at various state agencies, including the South Carolina Commission for the Blind and the Department of Employment and Workforce. She is married to Larry Nordone but will be known in the Senate as Darline Graham, her legal name.

She said on Monday that her older brother, who raised her after their parents died, had always been there for her. “And now, I will be there for him,” she said.

After she was sworn in, Graham walked to her brother’s desk and stood behind it as dozens of senators from both parties lined up to shake her hand or give her a hug. She attended the weekly Senate Republican luncheon before the ceremony, where Lindsey Graham’s former colleagues told stories about him and welcomed her to the Senate.

Lindsey Graham, 71, died unexpectedly on Saturday in Washington. A preliminary report from the medical examiner said he suffered a tear in his aorta, known as an aortic dissection.

One of President Donald Trump’s closest allies in the Senate, Lindsey Graham was the chairman of the Senate Budget Committee and was set to become the top Republican on the Senate Judiciary Committee in the next Congress. Darline Graham will receive her own committee assignments in the coming days.

Lindsey Graham, who was not married and did not have children, was exceptionally close to his sister. He became her legal guardian after their parents died, when he was 22 and she was 13. She often appeared at his campaign events and supported him in speeches and campaign ads, and she was there as he filed reelection paperwork earlier this year, along with her children and grandchildren.

“To Lindsey, I miss you more than I can even put into words,” his sister said as McMaster announced her appointment. “But I’m going to do this. I got it.”

McMaster said the two had spoken “in the wee hours of Sunday morning” after Graham’s death, and he asked her to serve.

“I had wondered what you would say, and I was humbled by your quickness to see the duty that you had to serve,” McMaster said. He added that President Donald Trump “thought it was a great idea” when he later told him of his pick. Trump announced his support for Darline Graham to fill the seat earlier Monday.