How can diet be effective in the prevention or cure of diabetes?

How can diet be effective in the prevention or cure of diabetes ?