Abstract. We study the weight filtration on the cohomology of a proper complex algebraic variety and obtain natural upper bounds on its size, when it is the exceptional divisor of a singularity. We also give bounds for the cohomology of links. The invariants of singularities introduced here gives rather strong information about the topology of rational and related singularities.Given a divisor on a variety, the combinatorics governing the way the components intersect is encoded by the associated dual complex. This is the simplicial complex with p-simplices corresponding to (p + 1)-fold intersections of components of the divisor. Kontsevich and Soibelman [KS, A.4] and Stepanov [Stp1] had independently observed that the homotopy type of the dual complex of a simple normal crossing exceptional divisor associated to a resolution of an isolated singularity is an invariant for the singularity. In fact, [KS], and later Thuillier [T] and Payne [P] have obtained homotopy invariance results for more general dual complexes, such as those arising from boundary divisors. In characteristic zero, all these results are consequences of the weak factorization theorem of W lodarczyk [Wlo], and Abramovich-Karu-Matsuki-W lodarczyk [AKMW]; Thuillier uses rather different methods based on Berkovich's non-Archimedean analytic geometry. As we show here, a slight refinement of factorization (theorems 7.6, 7.7) and of these techniques yields some generalizations this statement. This applies to divisors of resolutions of arbitrary not necessarily isolated singularities, and even in a more general context (discussed in the final section). We also allow dual complexes associated with nondivisorial varieties, such as fibres of resolutions of nonisolated singularites. Here is a slightly imprecise formulation of theorems 7.5 and 7.9. [KS], although we were unaware of this paper at the time these results were completed).To put the remaining results in context, we note that the present paper can be considered as the extended version of our earlier preprint [ABW], where we gave