Barack Obama has said dropping his daughter Malia off at university was such an emotionally charged experience it felt like “open-heart surgery”.

The former US President congratulated himself for managing not to break down in tears in front of his eldest daughter at Harvard University.

But Mr Obama admitted he became tearful after the 19-year-old left to embark on her first year and said delivering her reminded him of the importance of family.

“For those of us who have daughters, it just happens fast. I dropped off Malia at college, and I was saying to Joe and Jill [Biden] that it was a little bit like open-heart surgery,” he said during an event for the Beau Biden Foundation on Monday.

“I was proud that I did not cry in front of her. But on the way back, the Secret Service was off, looking straight ahead, pretending they weren’t hearing me as I sniffled and blew my nose. It was rough.”

Mr Obama, who left the White House in January, called the experience “a reminder that, at the end of our lives, whatever else we’ve accomplished, the things that we’ll remember are the joys that our children – and hopefully way later, our grandchildren – bring us”.

Michelle Obama as the First Lady Show all 11 1 /11 Michelle Obama as the First Lady Michelle Obama as the First Lady NEW YORK - MARCH 9: Michelle Obama, wife of Presidential candidate Senator Barack Obama (D-IL) addresses the crowd at a fundraising event at the Grand Hyatt March 9, 2007 in New York City. The mass fundraiser of Senator Barack Obama targeted a youthful demographic. (Photo by Michael Nagle/Getty Images) Getty Michelle Obama as the First Lady WASHINGTON - JANUARY 4: U.S. Senator Barack Obama (D-IL) (2nd L) poses for with his wife Michelle (2nd R), Vice President Dick Cheney (R), daughters (C) Malia and Sasha during the reenactment of a swearing -in ceremony on Capitol Hill January 4, 2005 in Washington, DC. The 109th Congress was sworn in January 4. (Photo by Alex Wong/Getty Images) Getty Michelle Obama as the First Lady LOS ANGELES, CA - MARCH 19: Senator Barack Obama and his wife Michelle arrive at the 36th NAACP Image Awards at the Dorothy Chandler Pavilion on March 19, 2005 in Los Angeles, California. (Photo by Frederick M. Brown/Getty Images) Getty Michelle Obama as the First Lady AMES, IA - FEBRUARY 11: Michelle Obama, wife of Senator Barack Obama (D-IL), listens with her daughter Sasha as the Senator addresses a crowd gathered at a campaign rally at Iowa State University February 11, 2007 in Ames, Iowa. Obama is wrapping up a two-day campaign swing through Iowa after announcing February 10, that he would seek the Democratic nomination for President. (Photo by Scott Olson/Getty Images) Getty Michelle Obama as the First Lady DES MOINES, IA - DECEMBER 08: Michelle Obama (L) and talk show host Oprah Winfrey embrace at a rally for Democratic presidential hopeful Barack Obama December 8, 2007 in Des Moines, Iowa. Obama and Winfrey are scheduled to make two stops in Iowa before heading off to campaign events in South Carolina and New Hampshire tomorrow. (Photo by Scott Olson/Getty Images) Getty Michelle Obama as the First Lady CHICAGO - FEBRUARY 05: Michelle Obama, wife of Democratic presidential hopeful Sen. Barack Obama (D-IL), arrives for a Super Tuesday event at the Hyatt Hotel Feburary 5, 2008 in Chicago, Illinois. Polls showed Obama and his rival for the Democratic nomination, Sen. Hillary Clinton (D-NY), in a virtual tie going into Super Tuesday, where primaries and caucuses are held in 24 states. (Photo by Chip Somodevilla/Getty Images) Getty Michelle Obama as the First Lady US President Barack Obama (L) and his wife Michelle (2nd L) meet with Britain's Queen Elizabeth II (2nd R) and Prince Philip, the Duke of Edinburgh (R) during an audience at Buckingham Palace in London, on April 1, 2009. US President Barack Obama visited Queen Elizabeth II at Buckingham Palace on Wednesday while his in London for the G20 summit. Obama and wife Michelle were hosted by the queen for a meeting, the day before the crunch summit on tackling the world economic crisis. AFP PHOTO/John Stillwell/WPA POOL (Photo credit should read JOHN STILLWELL/AFP/Getty Images) Getty Michelle Obama as the First Lady LONDON, ENGLAND - OCTOBER 11: A screen shows the First Lady of the United States Michelle Obama, as girls participate in a live conversation with her and other school girls around the world, via a video link at the Mulberry School for Girls n OCtober 11, 2016 in London, England. A Global Conversation on Girl's Education was a digital conversation with adolescent girls around the world. The event took place in celebration of International Day of the Girl. Girls in Washington, D.C., Jordan, Peru, Tanzania, and the Mulberry School for Girls in the United Kingdom spoke with one another about the challenges they have faced and potentially overcome in attaining an education. (Kirsty Wigglesworth-WPA Pool/Getty Images) Getty Michelle Obama as the First Lady Executive Director of Let's Move! and Senior Policy Advisor for Nutrition Policy at The White House Debra Eschmeyer (L) looks on as First Lady Michelle Obama (C) helps a child harvest sweet potatoes from the White House Kitchen Garden during a harvesting event at the White House in Washington, DC, October 6, 2016. / AFP / JIM WATSON (Photo credit should read JIM WATSON/AFP/Getty Images) Getty Michelle Obama as the First Lady WASHINGTON, DC - MAY 20: U.S. first lady Michelle Obama dances with students from turn around schools during a talent show at the East Room of the White House May 20, 2014 in Washington, DC. President Obamas Committee on the Arts and the Humanities held the first-ever White House Talent Show featuring performances by major artists and showcase the talents of students from schools participating in the Turnaround Arts program which helps to turn around low-performing schools and increase student achievement through arts education. (Photo by Alex Wong/Getty Images) Getty Michelle Obama as the First Lady WASHINGTON, DC - APRIL 06: First Lady Michelle Obama dances with members of the All Stars from from the television show "So You Can Dance" during the annual White House Easter Egg Roll on the South Lawn April 6, 2015 in Washington, DC. President Obama and the first lady hosted thousands of children for the annual White House event dating back to 1876 that features live music, sports courts, cooking stations, storytelling, as well as the Easter egg roll this year. (Photo by Mark Wilson/Getty Images) Getty

The former President has often discussed how important fatherhood is to him and used his presidential farewell address to tell his daughters: “Of all that I’ve done in my life, I am most proud to be your dad.”

Malia starts her undergraduate degree at Harvard after taking a gap year. The former world leader and first lady were spotted helping her move into her university room at the end of August.

Last summer, she graduated from Sidwell Friends school, a private school in Washington which was attended by Chelsea Clinton, Tricia Nixon Cox, and Archibald Roosevelt.

Malia gained global attention at the beginning of the year for joining a protest against the Dakota Access pipeline held at the Sundance Film Festival. She was thought to have left her family’s Caribbean holiday to attend the largest independent film festival in the US.