The 44-year-old actor also gave a special introduction before screening his latest Bond film, "Skyfall".
More than 800 British soldiers welcomed the Bond actor as he gave a speech and talked about the film before its screening.
Craig then went on to tour the camp, met hospital patients at Bastion Role 3 Hospital, which specialises in treating trauma patients, and then engaged in friendly conversations with the soldiers.
According to the Ministry of Defence, the actor also got a chance to fire a couple of machine guns used by the British troops in Afghanistan and saw what kinds of trainings the soldiers need to undergo before being deployed to forward operating bases.
"It was really good morale for everyone - it's a decent thing for him to take time to come out and visit everyone here," said Private Scott Craggs, who works as a medical technician in the camp.
Another soldier, Rob Ingham said, "We get quite a lot of visitors here, but having James Bond was special."
More From This Section
"Skyfall" is the 23rd official James Bond movie and has reeled in USD 669 million, making it the highest-grossing installment in the 50-year-old franchise.
Craig has taken the role of James Bond in the last three Bond movies.