Speaking at the mausoleum of Ayatollah Ruhollah Khomeini during annual celebrations of the 1979 revolution, Rouhani, a moderate conservative, praised the political heritage of the Islamic republic's founder.
"The imam (Khomeini) insisted on the fact that people must participate in all elections and have the right to choose", Rouhani said during the address, broadcast on state television.
"Whoever prevents people from choosing ... and whoever discourages people from going to the polls, is certainly far from the approach of the imam", he added, surrounded by members of the government.
Controversy has been raging for the past fortnight, pitting the coalition that supports Rouhani's government against the Guardian Council, which oversees Iran's elections and is dominated by ultra-conservatives.
The council says it has barred some 9,500 potential candidates from standing in the February 21 legislative polls — almost two thirds of the 14,500 hopefuls — including 92 sitting MPs from of all political stripes.
Those who are barred are allowed to appeal before the election.
Rouhani, paying homage the "father of republicanism in Iran", said Khomeini had refused to establish a "caliphate" and instead "chose the Islamic republic" after the victory of the revolution against the shah's rule.
Iraqi president names new PM, dividing protesters
The US-backed government of the shah fell on February 11, 1979, 10 days after Khomeini's triumphant return from exile.
Rouhani made reference to the failed constitutional revolution in 1905 — the first attempt to establish democracy in Iran — with the restoration of an absolute monarchy some years later.
He warned that the same could happen to the Islamic republic if elections became a mere "formality", with weak turnout.
Since mid-January, the president has repeatedly sought to mobilise the electorate, as some analysts predict his alliance of moderates and reformers will take a beating.
Last week, Rouhani warned of threats to the Islamic republic's "democracy and national sovereignty" after the disqualification of the candidates.
He said on Sunday that the nation had held up well against unprecedented US pressure because Iranians "are convinced that the oppression and aggression comes from (foreign) tyrants".
He was referring to tough economic sanctions that the US has imposed on Iran since 2018 as part of President Donald Trump's "maximum pressure" campaign.
"If we follow the path of the imam (Khomeini) ... we will overcome the current situation, which is the toughest in the economic and political history" of the Islamic republic, Rouhani added.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ