We consider two von Neumann subalgebras \clB0 and \clB of a type II1 factor \clN. For a map ϕ on \clN, we define \[\|\phi \|_{\infty,2}=\sup\{\|\phi(x)\|_2\colon \|x\| \leq 1\},\] and we measure the distance between \clB0 and \clB by the quantity ∥\bbE\clB0−\bbE\clB∥∞,2. Under the hypothesis that the relative commutant in \clN of each algebra is equal to its center, we prove that close subalgebras have large compressions which are spatially isomorphic by a partial isometry close to 1 in the ∥⋅∥2--norm. This hypothesis is satisfied, in particular, by masas and subfactors of trivial relative commutant. A general version with a slightly weaker conclusion is also proved. As a consequence, we show that if \clA is a masa and u∈\clN is a unitary such that \clA and u\clAu∗ are close, then u must be close to a unitary which normalizes \clA. These qualitative statements are given quantitative formulations in the paper.