ST. PAUL, Minn. — Former President Joe Biden joined thousands of mourners Friday as former Minnesota House Speaker Melissa Hortman lay in state in the Minnesota Capitol rotunda while the man charged with killing her and her husband, and wounding a state senator and his wife, made a brief court appearance in a suicide prevention suit.

Hortman, a Democrat, is the first woman and one of fewer than 20 Minnesotans accorded the honor. She lay in state with her husband, Mark, and their golden retriever, Gilbert. Her husband was also killed in the June 14 attack, and Gilbert was seriously wounded and had to be euthanized. It was the first time a couple has lain in state at the Capitol, and the first time for a dog.

The Hortmans’ caskets and the dog’s urn were arranged in the center of the rotunda, under the Capitol dome, with law enforcement officers keeping watch on either side as thousands of people who lined up filed by. Many fought back tears as they left. Among the first to pay their respects were Gov. Tim Walz, who has called Hortman his closest political ally, and his wife, Gwen. Biden, a Catholic, visited later in the afternoon, walking up to the velvet rope in front of the caskets, making the sign of the cross, and spending a few moments by himself in silence. He then took a knee briefly, got up, made the sign of the cross again, and walked off to greet people waiting in the wings of the rotunda.

The Capitol was open for the public from noon to 5 p.m. Friday, but officials said anyone waiting in line at 5 would be let in. A private funeral is set for 10:30 a.m. today and will be livestreamed on the Department of Public Safety’s YouTube channel.

Biden will attend the funeral, a spokesperson said. So will former Vice President Kamala Harris. Harris expressed her condolences earlier this week to Hortman’s adult children, and spoke with Walz, her running mate on the 2024 Democratic presidential ticket, who extended an invitation on behalf of the Hortman family, her office said.