The president has described Robert as “not just my brother.
“He was my best friend”.
With bagpipes playing, the president and first lady Melania Trump followed his brother’s coffin to a waiting hearse in the late afternoon.
They stood at attention and held hands for a couple of moments as the coffin was placed inside.
A few dozen family and friends stood nearby on the White House steps.
As the hearse drove away, the president and first lady returned to the residence and some in the group embraced in an effort to provide comfort.
At least 18 weddings have been held at the White House and at least 10 people have died there including two presidents and three first ladies.
Abraham Lincoln and Calvin Coolidge both mourned the loss of a son while serving as president, Willie Lincoln in 1862 and Calvin Coolidge Jr in 1924.
The memorial services for both children began in the White House.
The service for Robert Trump took place in the White House East Room.
Unlike Willie Lincoln and Calvin Coolidge Jr, Robert Trump did not live at the White House.
Nevertheless, it is completely within the president’s ability to honour him with a service there, said Anita McBride, who served in three presidential administrations, including as first lady Laura Bush’s chief of staff.
“The White House is a very complex place.
“It’s an office, it’s a museum and it’s a home,” Ms McBride said.
“We loan it to the president for the time he or she is living there.
“Coming from that perspective, we need to be understanding of some decisions that they make in a case like this.”
When Mr Trump explained why he wanted to have a service for his brother at the White House, he said: “I think he’d be greatly honoured.
“He loves our country.
“He loved our country so much.
“He was so proud of what we were doing and what we are doing for our country.
“So I think it would be appropriate.”
Robert Trump, a businessman, died on Saturday after being taken to hospital in New York.
The president had visited his brother in the hospital the night before his death.
Robert Trump began his career on Wall Street working in corporate finance but later joined the family business, managing real estate holdings as a top executive in the Trump Organisation.
“When he worked in the Trump Organisation, he was known as the nice Trump,” Gwenda Blair, a Trump family biographer, said.
“Robert was the one people would try to get to intervene if there was a problem.”
In the 1980s, Donald Trump tapped Robert Trump to oversee an Atlantic City casino project, calling him the perfect fit for the job.
When that project cannibalised his other casinos, though, “he pointed the finger of blame at Robert”, said Ms Blair, author of The Trumps: Three Generations That Built An Empire.
A Boston University graduate, Robert Trump later managed the Brooklyn portion of his father Fred Trump’s real estate empire, which was eventually sold.
Within a week of the memorial service, Mr Trump will use the White House for another unusual purpose: his nomination acceptance speech.
He had hoped to give the speech in Charlotte, North Carolina, or Jacksonville, Florida, but had to cancel because of the coronavirus pandemic.
He settled on the White House, and large amounts of scaffolding on the South Lawn indicated it will not be a simple affair.
“That’s not going to go over well with everybody, but in this case, the president will be damned if he does, damned if he’s doesn’t,” said Ms McBride, director of the Legacies of America’s First Ladies initiative at American University.
“It’s difficult, I think, for him to have any winning scenario,” she said of his choice.