The five living presidents are making a rare simultaneous appearance on Thursday at former President Jimmy Carter’s funeral.

It is unusual for five living presidents to be together in one place. Before 1991, there was only one other period in United States history, around 1861, when more than five presidents were even alive at the same time.

On Thursday, Donald J. Trump, Joe Biden, Barack Obama, George W. Bush and Bill Clinton are together for the first time since 2018.

Here are some of the most recent occasions when such a gathering has taken place.

The last presidential funeral

On Dec. 5, 2018, the funeral of George Herbert Walker Bush was attended by five former presidents, including Mr. Bush’s son George W. Bush.

The president at the time, Mr. Trump, did not have a speaking role at the funeral because of his brittle relationship with the Bush family. He had mocked the elder Bush’s volunteerism slogan — “a thousand points of light” — during campaign rallies, but speakers at the funeral celebrated the message.

The state funeral for former President George H.W. Bush in 2018. His son George W. Bush was joined at the service by then-President Donald J. Trump and former Presidents Barack Obama and Bill Clinton.