A U.S. soldier returning to Fayetteville, N.C., from Afghanistan got a surprise welcome from two dogs he saved from starvation while stationed in the war-torn country.

WRAL.com, a FOX affiliate in Raleigh, reports that a charity animal-rescue program run by Internet search engine Dogpile.com reunited Staff Sgt. Daniel Barker with two dogs reportedly rescued by Barker and his fellow soldier, Adam Krause, during their 2008 deployment to Afghanistan.

Barker and Krause found the malnourished puppies abandoned on the streets of Afghanistan and brought them back to their military base, where they named them Jack and Emma, the station reports.

When the soldiers got near the end of their deployment in January, they contacted Dogpile.com after hearing about its work with the Society for the Prevention of Cruelty to Animals.

Dogpile.com reportedly agreed to pay for the dogs' journey to the U.S. and stay in Customs.

After being delivered to New York City, the puppies were taken to home by Barker's wife, Lisa, who cared for them until the soldiers returned.

"Jack has been Dan's rock over there. When he is out on missions and sees awful things, he comes back to his dog, Jack, and is able to have comfort," Barker's mother-in-law, Janice Rosengren, told the station.

Click here to read more on this story from WRAL.com.