A U.S. Marine leads training on a shooting range in France in an undated photo taken during the First World War. (Photo by Reuters/Courtesy Library of Congress)
The body of one of several U.S. soldiers who were executed after being captured by North Korean troops just south of Seoul in early July 1950. (Photo by AP Photo)
A military enthusiast dressed as World War Two Red Army officer sits in a cafe as he marks the 75th anniversary of the Nazi Germany invasion, in Brest, Belarus June 21, 2016. (Photo by Vasily Fedosenko/Reuters)
146 West End Stars hold a flashmob in support of the non-profit organistation Love 146, which campaigns to end child s*x slavery and exploitation, at Trafalgar Sqaure on April 11, 2011 in London, England. (Photo by Tim Whitby/Getty Images)
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)
Fascist youth, both boys and girls, in the rebel uniforms in Irun after the city had been captured by the rebels. (Photo by Maeers/Fox Photos/Getty Images). 13th November 1936
An Iraqi soldier stands guard as a pipeline burns in the background after an explosion 30 kilometers (20 miles) northeast of Tikrit, Iraq, Monday, February 11, 2008. (Photo by Bassem Daham/AP 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.