Trichoderma reesei VTT-D-86271 (Rut C-30) was cultivatedon media based on cellulose and xylan as the main carbon source in fermentors with different pH minimum controls. Production of xylanase was favoured by a rather high pH minimum control between 6.0 and 7.0 on both cellulose- and xylan-based media. Although xylanase was produced efficiently on cellulose as well as on xylan as the carbon source, significant production of cellulose was observed only on the cellulose-based medium and best production was at lower pH (4.0 minimum). Production of xylanase at pH 7.0 was shown to be dependent on the nature of the xylan in the cultivation medium but was independent of other organic components. Best production of xylanase was observed on insoluble, unsubstituted beech xylan at pH 7.0. Similar results were obtained in laboratory and pilot (200-l) fermentors. Downstream processing of the xylanase-rich, low-cellulose culture filtrate presented no technical problems despite apparent autolysis of the fungus at the high pH. Enzyme produced in the 200-l pilot fermentor was shown to be suitable for use in enzyme-aided bleaching of kraft pulp. Due to the high xylanase/cellulase ratio of enzyme activities in the culture filtrate, pretreatment for removal of cellulase activity prior to pulp bleaching was unnecessary.