Saudi student representative Rafat Hamoh said the event was "as big as Christmas".
About 100 people joined in the celebrations which featured traditional dance and songs from different countries, including Saudi Arabia, Kuwait, Sudan and Afghanistan.
Ramadan is an Islamic religious event during which Muslims fast during daylight hours in order to learn self-discipline, self-restraint and generosity.
Eid ul-Fitr is a holiday which marks the end of Ramadan.
It is a joyous occasion which celebrates the achievement of enhanced piety.
The Muslim community in Dunedin shared breakfast and dinner at the mosque yesterday, Mr Hamoh said.
Ala Ghandour (11) and Zaena Al-Kawhai (11) enjoyed the traditions of receiving money, much like trick-or-treating on Halloween, and eating lollies.
Children took three days off school for the celebrations, and activities were planned for them, including a trip to the movies.
It was also traditional to visit other families and join in celebration.