To the tune of wailing bagpipes and a solitary drum beat, hundreds of soldiers, veterans and police officers walked alongside the flag-draped casket of Corporal Nathan Cirillo to a cathedral in Hamilton, his hometown in Ontario.
Cirillo was fatally shot last week while standing watch at the War Memorial in Ottawa. His attacker, Michael Zehaf-Bibeau, then stormed into parliament and exchanged fire with police before being shot dead.
Both attacks came as Canada deployed fighter jets to join US-led air strikes on the Islamic State group in Iraq. Police say both assailants were converts to Islam with alleged extremist views.
"Two of our own have made the ultimate sacrifice, and we celebrate their lives and mourn their deaths," said Governor General David Johnston.
More From This Section
In his eulogy, Prime Minister Stephen Harper told mourners that the war memorial is a reminder that "freedom is never free. It has been earned by the soldier and then donated to all of us."
"Corporal Cirillo, who felt the calling of a soldier when he was just a 13-year-old cadet, he understood. He knew what he was protecting and what he was preserving. He died protecting and preserving it," he said.
Harper was to meet later in the day with US Secretary of State John Kerry, who travelled to Canada to show Washington's solidarity with Ottawa. Kerry placed a wreath at the war memorial in Cirillo's honor.
Canada, a country proud of its reputation for openness and tolerance, has remained defiant in the wake of the attacks.
Some Canadians have travelled to the Middle East to join the group, and others are thought to have developed radical ideas at home, living among the country's Muslim minority.