Wednesday marks the official end of Canada's military role in Afghanistan.

Elsa/Getty Images

A ceremony took place this morning in Fredericton front of the Legislative Assembly of New Brunswick officially marking the end of their 12 year military mission in the country. A flag was lowered at the ceremony, the same day the Canadian flag will be taken down in Kabul.

The war cost the lives of 158 Canadian soldiers, one diplomat, one journalist and two civilian contractors.

Fredericton-Silverwood MLA Brian MacDonald spearheaded the event. Veterans of Afghanistan, Military families, a pipe band from CFB Gagetown, legion members, politicians and the public all took part in the event.

New Brunswick Maple Syrup Producers Get $1.3 Million Dollars