Australian knight Philip Leitch (R) has a floral basket on his helmet smashed by an opponent at the St Ives Medieval Fair in Sydney, one of the largest of its kind in Australia, September 25, 2016. (Photo by Jason Reed/Reuters)

In this picture taken on September 24, 2016, relatives grieve their lost one, an alleged drug user/dealer gunned down by unidentified gunmen in Manila. Philippine President Rodrigo Duterte defended his threat to kill criminals as “perfect” and vowed no let-up in his war on crime, as the death toll surged past 3,700. (Photo by Noel Celis/AFP Photo)

Throughout the course of the long war in Afghanistan, Coalition troops have relied on thousands of military working dogs to help keep them safe, and make their jobs easier. The dogs are trained to detect explosives, to find illegal drugs, to search for missing comrades, or target enemy combatants. Not only are they active on the front lines, but behind the lines they serve as therapy dogs, service dogs, and loyal companions. They also share the same risks as the ground troops, suffering injuries and sometimes death on the battlefields. Gathered here are images of these dogs and their handlers in Afghanistan and back home, from over the past several years, part of the ongoing series here on Afghanistan.

Star Wars collector James Burns, 44, poses for a photograph with some of his collection in London December 2, 2015. He said “I've met so many wonderful people, all over the world. It's a wonderful community of likeminded people with an interest in Star Wars. There's nothing else like it”. (Photo by Paul Hackett/Reuters)

A U.S. Marine kneels beside a Multi-Utility Tactical Transport ( MUTT) during a patrol as part of Rim of the Pacific (RIMPAC) 2016 an exercise held at Camp Pendleton, California United States, July 13, 2016. (Photo by Mike Blake/Reuters)

A total lunar eclipse is seen through the old city walls on June 15, 2011 in Jerusalem, Israel. The longest lunar eclipse for a decade took place tonight. A lunar eclipse comes when the sun, Earth and moon line up and Earth's shadow falls on the moon. (Photo by Uriel Sinai/Getty Images)

Star Wars fan Mike Deguzman practices with a toy lightsaber after purchasing some new toys that went on sale at midnight in advance of the film “Star Wars: The Force Awakens” in Times Square in the Manhattan borough of New York, September 4, 2015. (Photo by Carlo Allegri/Reuters)