STAMFORD — Matthew Palmer and Thomas Gloersen were officially sworn in this week as deputy chiefs of the city’s fire department.

They were each promoted from captain last month and have been serving in their new roles for about three weeks. The department has six deputy chiefs who serve under Chief Trevor Roach.

“These are important promotions as we continue to unify and improve the fire service. The promotion of Capt. Gloersen and Capt. Palmer are a testament to what both have accomplished throughout their careers,” Mayor David Martin said. “Their leadership will make the fire service better with new ideas and innovations to improve fire safety.”

Gloersen, 52, who has been with the department for 31 years, was elated by the promotion.

“Making a position like this brings a large mantle of responsibility,” said Gloersen, who is now the Group 4 commander. “I’m now responsible for everyone on my shift. There is a lot more to think of, but there is also the verification and recognition by the department of all the hard work you have done to get here.”

Gloersen was hired in 1987 and was promoted to captain 10 years later. His last position was commander of the Rescue Company where he and his team responded to major incidents. He is a Medal of Valor recipient for his rescue of two children in a 1993 fire.

Palmer, 46, is a 23-year member of the department who started as a junior firefighter when he was in high school.

“It is a very humbling experience,” he said. “I started at the age of 16 as a junior firefighter and you reflect back on the journey and it has been a fantastic one.”

Palmer, who is now in charge of safety and training for the entire department, was hired in 1997 and was chosen firefighter of the year in 2009, a year after he was promoted to captain. He had been captain of Ladder Co. 1 at Central Fire Headquarters.

“To be promoted deputy chief in the Stamford Fire Department is an honor and a privilege,” Roach said. “This is a great achievement and very competitive. Deputy Chief Gloersen and Deputy Chief Palmer are exceptional and have done much for the Stamford Fire Department. I expect great things from each as they assume their new roles. They are key members of my command staff.”