Adel Salman made the comments on ABC Radio National as he explained why representatives from the Islamic Council of Victoria will not attend the upcoming Ramadan celebration.
"We denounce any violence and killing of civilians but what we don't denounce very clearly is legitimate acts of resistance," Mr Salman told the broadcaster on Wednesday morning.
"For the Palestinians to rise up on October 7th and say we're no longer going to tolerate this siege, this occupation, that's legitimate.
"If they've done things that is against international law then they should be held to account for that."
Hamas, designated a terrorist organisation by Australia, launched an attack in Israel on October 7 in which 1200 people were killed and hundreds taken hostage, according to Tel Aviv.
Almost 30,000 Palestinians have been killed since Israel's subsequent invasion of Gaza, according to the local health ministry.
Anti-Defamation Commission chair Dvir Abramovich said he was "sickened" by Mr Salman's comments. (Joel Carrett/AAP PHOTOS)
Anti-Defamation Commission chair Dvir Abramovich said he was "sickened" by Mr Salman's comments, claiming anyone who believes in compassion and humanity had been let down.
"How can anyone excuse and justify the evil and the depravity of October 7th?" Mr Abramovich said.
Later on ABC Melbourne, Mr Salman said the community was in no mood for a celebratory event and raised concerns over Labor's position on the Gaza conflict.
"Clearly, the Muslim community feels the federal government should have done a lot more and should be doing a lot more to prevent this unfolding genocide," Mr Salman told ABC Radio Melbourne.
He acknowledged Premier Jacinta Allan does not have a say in Australia's foreign policy, but called for a greater show of solidarity in public.
"She has expressed solidarity with the Jewish community and expressed a lot of concern for the Jewish community which is appropriate," Mr Salman said.
"What we're asking for is for her to show that level of concern for our community in very unequivocal strong terms."
He also called for the state government to cancel a memorandum of understanding signed with the Israeli ministry's international defence cooperation directorate in December 2022.
An open letter calling on Victoria's Muslim community to boycott the dinner has more than 100 endorsements including signatories from mosques, council-based Palestine action groups and other associations.
The Victorian government has hosted an Iftar dinner since 2015 and it will go ahead this year but will not be as big as celebrations in the past.
"Premier's Iftar dinners are an important tradition in Victoria," a spokesperson said.
"We're working closely with leaders of Victoria's Islamic community to ensure that everybody's voices are heard, recognising that this year's event will be a more solemn and respectful occasion."
The spokesperson said the premier supported Prime Minister Anthony Albanese in calling for a humanitarian ceasefire, adding the government understood the heartbreak Palestinian and Muslim Victorians felt as the Gaza conflict continued.
The Australian National Imams Council and Australian Federation of Islamic Councils will not attend an Iftar dinner hosted by NSW Premier Chris Minns because of the suffering and oppression of Palestinians and the planned assault on Rafah by Israel coinciding with Ramadan.
"ANIC hopes that the Minns' Government will take a more just and considerate approach to acknowledging the distress of the communities in NSW and the suffering of the Palestinian people," Sheikh Shadi Alsuleiman from the Imams Council said.
The Australian Federation of Islamic Councils said not only will it not attend the premier's dinner, but it also won't hold its own.
"AFIC believes that in these times of collective mourning and distress, it is more appropriate to channel our efforts and funds towards providing relief and support to those in dire need rather than convening for public events," it said in a statement.
The NSW dinner will still go ahead, a spokeswoman for Mr Minns told AAP.