Ferment refers to commotion or unrest.
- The contest fermented much excitement from the crowd.
Foment means to stir emotions or reactions, not necessarily bad.
- We do not want to foment any ill feeling.
Note: In a totally different sense, the word ferment also relates to a substance capable of bringing about fermentation.