Italian Premier Matteo Renzi says Europe must look inward to help deal with the threat posed by terrorism.

Renzi spoke at Harvard University on Thursday as he continued a four-day U.S. visit.

The former Florence mayor who was elected premier in 2014 said many of the terrorists including those who attacked Paris and Brussels grew up in European cities.

While agreeing with the need for a military response and enhanced security within Europe, Renzi said governments must also invest in education, economic growth and the "humanistic model of cities in Europe."

Renzi made clear he supports Democratic presidential candidate Hillary Clinton, but added he would respect any outcome of the U.S. election.

He is scheduled to join other world leaders at a global nuclear summit in Washington on Friday.