Hundreds of thousands of Iranians marched and some burned USA flags to mark the revolution's 40th anniversary on Monday as Tehran showed off ballistic missiles in defiance of US efforts to curb its military power.
State television showed crowds defying cold rainy weather and carrying Iranian flags while shouting "Death to Israel, Death to America" - trademark chants of the revolution.
He said that while Iran will continue to have "constructive engagement" with the global community, it will not ask for permission to produce any type of missile it wants.
He vowed to boost Iran's military and ballistic missile program.
Stalls set up by state institutions handed out tea and cakes and choirs sang revolutionary songs, as crowds massed despite driving rain.
An Iranian man marches with a portrait of the country's Supreme Leader Ali Khamenei (L) alongside a woman holding up another of Islamic Revolution founder Ayatollah Ruhollah Khomeini (R) during a ceremony celebrating the 40th anniversary of Islamic Revolution in the capital Tehran on February 11, 2019.
The celebrations included several instance of muscle flexing, including the launch and test of new missiles, which would put Israel squarely within precise range of the Iranian armed forces.
It was not clear whether the amnesty would also apply to political prisoners.
In the tweets Trump said: '40 years of corruption.
Chants of "Death to America" and "Death to Israel" can commonly be heard in Iranian demonstrations of nationalist fervor, with this one being no exception. "It has been moving forward over the past 40 years and making Iran stronger".
The large turnout in state-sponsored rallies, in which US and Israeli flags were burned, came as Iranians face mounting economic hardships many blame on the country's clerical leaders.
"I bow in admiration to Iran's resilient people who - despite hardships and grievances - today poured into streets by the millions to mark 40th anniv of their Islamic Revolution, which some in the U.S. wished would never come", Iranian Foreign Minister Mohammad Javad Zarif tweeted.
In January, Mr Rouhani said Iran was facing its worst economic crisis since the Shah was toppled.
The rallies on the national holiday of "Bahman 22nd" began at 9 am local time in more than 1,000 cities and towns as well as 10,000 villages across Iran. Iran's 1979 Islamic Revolution initially inspired both Islamic militants and Islamists across the Mideast. "And that's why, before 2019, we here will celebrate in Tehran!" he claimed.
"At the revolution's 40 anniversary we are on top of scientific achievements like nanotechnology or accurate missiles", he said.
He compared the United States sanctions and economic hardships to "riding a bicycle when someone puts a stick in the wheels" but pointed to advances in other fields as more than making up for them.
Extensive fireworks displays were held across Tehran on Sunday night.