LAC-MEGANTIC, Que. -- Residents in Lac-Megantic gathered on Sunday to pay tribute to those who were first to arrive on the scene of a horrific train derailment five months ago.

Firefighters, paramedics, police and Red Cross volunteers were given medals for their service.

Lac-Megantic mayor Colette Roy-Laroche, who was front and centre in the aftermath of the tragedy, was also honoured with a medal -- and a lengthy standing ovation.

Quebec Premier Pauline Marois and several members of her cabinet were on hand for a ceremony at the local high school, which served as a shelter in the weeks following the accident.

In her speech, Marois told the first responders they were a source of strength across Quebec as residents grappled with the tragedy.

"The people of Quebec thank you for your exceptional service," Marois said.

"Your actions saved lives, and gave a whole community a reason to stand up again."

Following the accident last July 6, firefighters came from across the province and even neighbouring Maine to help put out the flames and later sift through the smoldering rubble.

A total of 47 people were killed after a runaway train carrying crude oil derailed and exploded near the centre of Lac-Megantic.

On Saturday, members of the community lit 47 Christmas trees as a tribute to the victims.