“The people of Iran, who have been subjected to pressures especially in the last three years as a result of continued sanctions, cannot place trust in any security cooperation between their government with those who have imposed sanctions and created obstacles in the way of satisfying even their primary needs, such as food and medicine,” he said.

Mr. Rouhani’s speech to the United Nations General Assembly, his second as Iran’s president, began by striking some of the same notes that his counterparts from the United States and Europe struck on Wednesday regarding the rise of the Islamic State, the militant group that now controls parts of Syria and Iraq. President Obama, in his speech on Wednesday, called on all nations to unite in a concerted effort to destroy the group, which is also known as ISIS or ISIL.

Mr. Rouhani denied that Iran sought to control other nations in the region, calling that belief “delusional Iranophobia,” and reminded the world that Iran was among the first countries to assist Iraq in June, when Islamic State fighters invaded from neighboring Syria.

He said the extremist group and its affiliates, which have drawn recruits from around the world, do not represent the true teachings of Islam.