MassDevelopment, the state’s finance and development agency, said it invested $2.3 billion in Massachusetts businesses, nonprofits, and communities during the fiscal year that ended June 30.

By MassDevelopment’s count, it funded 317 projects that will support the creation of 2,021 jobs across the state.

Of that total, MassDevelopment said it invested $1.25 billion in Greater Boston, including about $33.4 million that went toward projects in Boston’s affordable rental housing market.

Advertisement - Continue Reading Below

“Tax-exempt bonds provide low rates for affordable housing projects and access to much-needed federal housing tax credits,” MassDevelopment president and chief executive Marty Jones said in a statement. “Creating affordable housing is a critical part of MassDevelopment’s mission, and I am proud we can provide financial means to improve the quality of life for many families living and working in Boston.”