We show rigidity (under coarse equivalence) of arbitrary euclidean buildings of dimension at least 2. The result relies on an equivariant rigidity result for trees.