After having served 2.5 million customers over the last five years, the Tim Hortons location in Kandahar, Afghanistan will close at the end of the month, the company said Thursday.

A Canadian soldier enjoys a Tim Hortons coffee on the Canadian Forces base in Kandahar, Afghanistan. The location will close at the end of the month. (Tim Hortons Inc.)

"It has been an absolute privilege and honour for Tim Hortons to be associated with the military and bring a little taste of home to the brave Canadian soldiers serving overseas," CEO Paul House said. But as Canadian troops begin to withdraw from the base there, the location seems to have run its course.

Since opening on Canada Day in 2006, the Kandahar Tim Hortons served four million cups of coffee, three million donuts and half a million iced cappuccinos and bagels, the company said in a release Thursday.

Since then, 230 Canadians have been employed at the store, which has served customers from 37 different nations. "We are flattered that so many troops from different nations also made Tim Hortons a part of their everyday routine," House said.

All of the location's proceeds went to military community and family support programs because the company waived all fees and operating costs typically associated with a franchise.