The charitable arm of NiSource Inc., whose Massachusetts subsidiary was blamed for a series of natural gas pipeline explosions in 2018, is providing $10 million to support nonprofits in the three communities impacted by the tragedy.

The NiSource Charitable Foundation, the parent company of Columbia Gas of Massachusetts, said the grants for up to $250,000 each would be provided over five years. The grants may be used to support assistance for food, shelter and heating, as well as economic/job development, emergency assistance and environmental stewardship.

“Even though NiSource may not be operating in Massachusetts in the future, it is still important to us to continue to stand with and support the communities of Andover, Lawrence and North Andover,” said NiSource CEO Joe...