Former New York City mayor Michael R. Bloomberg is giving $32 million to Harvard University to launch a program to teach mayors and their aides how to tackle major urban problems.

The gift, made through Bloomberg Philanthropies and announced Thursday, will harness faculty at Harvard’s business and government schools as well as other urban experts to provide executive training to as many as 300 mayors and 400 aides over the next four years.

Bloomberg, a billionaire business executive, served three terms as mayor of New York

“With more and more of the world living in cities, mayors are increasingly responsible for solving major challenges we face, from climate change to poverty to public health,” Bloomberg said in a statement. “But despite the importance of the role, mayors often lack opportunities to learn from experts – and one another. By giving mayors tools and resources – and by connecting them with peers … this program will go a long way toward helping them run cities more effectively.”

Bloomberg, 74, earned a bachelor’s degree from Johns Hopkins University and a master’s in business administration from Harvard.

The Bloomberg Harvard City Leadership Initiative aims to provide mayors with “customized curriculum, instructional and technology tools – most of which will be made freely available to the world.” . It will also fund internships in mayoral offices, research on innovative city government and a mentoring program.