The present invention relates to a method for producing a coffee extract which comprises use of an enzyme having mannanase activity. The invention also relates to polypeptides having endo-beta-1,4-mannanase activity and polynucleotides encoding the polypeptides. The invention also relates to nucleic acid constructs, vectors, and host cells comprising the polynucleotides as well as methods of producing and using the polypeptides.