Capsule for the preparation of a nutritionalproduct in a device adapted to supply liquidin the capsule, said capsule comprising: at least onecompartment (13) containing nutritional ingredientsfor the preparation of the nutritional product in combinationwith the supplied liquid, a filter adapted forremoving contaminants contained in the liquid,wherein the filter is formed as a relatively rigid filterunit (18) which comprises a filter membrane (20)and ah outlet wall (23) for supporting the filter membrane;the outlet wall comprising at least one liquidoutlet (26) communicating with the compartment(13). The invention also relates to the filter unit (18)as such.