Former US president Jimmy Carter is out of hospital after being treated for dehydration, a spokeswoman has said.
Representatives for Mr Carter and Habitat for Humanity said on Thursday that the 92-year-old had become dehydrated while volunteering at a home-building project in Winnipeg, Canada, and was taken to hospital for rehydration as a precaution.
Carter spokeswoman Deanna Congileo says he was discharged from St Boniface General Hospital on Friday morning and then attended a devotional to begin the last day of a Habitat for Humanity home-building project.
"He and Mrs Carter extend their appreciation for the many well-wishes he received worldwide," Ms Congileo said in a statement.
Mr Carter had joined Habitat as the organisation builds 150 homes for people in need in Canada to celebrate the country's 150th anniversary.
The former president and his wife Rosalynn were in Edmonton, where Habitat is building 75 homes, from Monday to Wednesday before heading to Winnipeg, where the couple joined hundreds of volunteers working on 25 homes in the St James community, said Rowena Sara, a spokeswoman for the organisation.
Mr Carter had been working for about 90 minutes on Thursday morning when he went to sit down in a chair, the Winnipeg Free Press reported.
He appeared to wobble, so Secret Service agents led him to his motorcade. He was treated by paramedics who took him away in an ambulance, without using lights or siren, the newspaper said.
The Carters are prominent backers of the Atlanta-based building charity. This week's project building houses in several Canadian communities is the 34th time they have pitched in on Habitat projects, lending a hand and their name to promote the work.
Mr Carter was diagnosed with melanoma that had spread to his brain in 2015, but announced in March the following year that he no longer needed treatment.
He continued to volunteer for Habitat while being treated for cancer, working alongside volunteers at a home in Memphis in November 2015.