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.

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.

An Afghan Army soldier secures the hill overlooking the Kart-e Sakhi mosque in Kabul, Afghanistan, Wednesday, March 20, 2013. Thousands of Afghans will celebrate Nowruz on Thursday, March 21, 2013 to mark the first day of spring and the beginning of the year on the Iranian calendar. (Photo by Ahmad Jamshid/AP Photo)

Heavy equipment works along the still under construction Bamiyan-Yakawlang road June 10, 2011 in Yakawlang, Afghanistan. The 69 Million US$ project is supported by the Government of Japan and World Bank. The 90K road project was started three years ago and is slated to be finished within another year. This new road means faster travel from Bamiyan to Afghanistan's only national park, Band-e-Amir. This is in of the safest parts of the country and the hope is to expand tourism in the region. (Photo by Paula Bronstein/Getty Images)

Afghan girl athletes perform Wushu on the top of a hill in Kabul, capital of Afghanistan, January 18, 2017. In the conservative Afghan society where people especially in the countryside deeply believe in the old traditions and don't allow their girls and female members of the family to go out of home, exercising sport in open is extremely risky, but a group of girls are broken the taboo and exercising Wushu on a hilltop where the temperature is minus 2 Celsius degrees. (Photo by Rahmat Alizadah/Xinhua/Barcroft Images)

An Afghan judge hits a woman with a whip in front of a crowd in Ghor province, Afghanistan August 31, 2015. An Afghan man and woman found guilty of adultery received 100 lashes on Monday in front of a crowd who filmed their punishment, TV footage showed. (Photo by Reuters/Pajhwok News Agency)