PORTLAND — Two Maine fire departments are getting $170,000 in grant funding from the federal Department of Homeland Security.

Officials say the Berwick Fire Department is getting $118,000, while the Cumberland Fire Department has been awarded more than $52,000. The money comes from the Assistance to Firefighters Grant Program.

In announcing the grants, U.S. Sen. Susan Collins said funding for the Cumberland department will be distributed through a program that provides money for training, equipment, wellness and fitness, and modifications to fire department facilities. The South Berwick funding will be distributed through a program that helps departments purchase new firefighting vehicles.