The macroinvertebrate species and assemblages of headwater streams of the River Tyne catchment in northern England were classified and their relationship with environmental variables based on stream structure, water acidity, distance from source and land cover investigated using constrained ordination and logistic regression. Fuzzy classification of data from 322 stream sites generated five assemblages. Stream structure, quantified as an exposure index, was found to be the most important environmental variable, with water acidity also important. Distance from source and land cover had less influence on species and assemblage distribution. A considerable amount of variation in assemblage distribution was explained using a two-variable logistic regression with stream structure (exposure index) and water acidity (pH) in a template. Site structure and water acidity appeared to be related to drift, geology and topography with little anthropogenic influence. The applicability of the habitat template concept for explaining the distribution of stream macroinvertebrates is discussed.