Modaks are a favorite food of Lord Ganesha and are offered to him during the festival as a symbol of devotion and prosperity.