He may be the most powerful man in the world but President Barack Obama has reminded the world that he is a father first.

Twitter and Facebook images have captured the US leader setting politics aside to comfort some of the grieving relatives of those killed in the Sandy Hook school massacre in Newtown, Connecticut.

The recently re-elected president spent time with parents and families in the small New England town where lone gunman Adam Lanza killed 20 children and six adults in America's worst-ever school shooting. Obama then went on to speak at an interfaith service.

During his time, he shared an emotional embrace with Robbie Parker, who lost his six-year-old daughter, Emilie, in the massacre.

The father-to father moment appeared to provide a distraught Parker a brief solace and he later posed for a snap with Obama, with his wife and remaining two daughters.

Obama, who has daughters Sasha and Malia, also took the personal approach when he spent time with the baby granddaughter of murdered school principal Dawn Hochsprung.

She was gunned down when she tried to stop Lanza entering the building.

Hocksprung's daughter, Cristina Hassinger, tweeted a picture of him holding the baby and added the caption: "My mom would be so proud to see President Obama holding her granddaughter. But not as proud as I am of her".

In one of the most poignant speeches of his presidency, Obama vowed to protect the children of the United States.

"You are not alone in your grief," he said. "All across this land our world too has been torn apart. All across this land we wept with you and pulled our children tight. Newtown, you are not alone.

"We gather here in memory of 20 beautiful children and six remarkable adults. Whatever measure of comfort we can provide, we will provide it."

President Obama waves to Newtown residents ahead of his speech.
President Obama waves to Newtown residents ahead of his speech.Reuters
Makeshift memorial for victims of the massacre at Sandy Hook school.
Makeshift memorial for victims of the massacre at Sandy Hook school.Reuters
President Obama hugs siblings and friends of victim Emilie Parker
President Obama hugs siblings and friends of victim Emilie ParkerFacebook
The US president struggles to control his emotions as he prepares to address the people of Newtown at an interfaith service
The US president struggles to control his emotions as he prepares to address the people of Newtown at an interfaith serviceFacebook
Obama joins parents of murdered schoolgirl Emilie Parker and their two remaining daughters for a group photo
Obama joins parents of murdered schoolgirl Emilie Parker and their two remaining daughters for a group photoFacebook
Words of solace for Robbie Parker who lost a daughter in the shooting
Words of solace for Robbie Parker who lost a daughter in the shootingFacebook
'My mom would be so proud to see President Obama holding her granddaughter'. Obama holds the granddaughter of principal Dawn Hochsprung who was shot to death trying to protect the students.
'My mom would be so proud to see President Obama holding her granddaughter'. Obama holds the granddaughter of principal Dawn Hochsprung who was shot to death trying to protect the students.Facebook/Twitter