Duality symmetries have played a key role in the discovery that the five consistent superstring theories in 10 dimensions emerge as different corners of the moduli space of a single unifying theory, known as M-theory. Focusing on the target space, or T, duality symmetry, we show how it can be formulated in spacetimes with abelian and non-abelian isometries. Finally, we discuss some recent work that realizes non-abelian T-duality as a consistent truncation to seven-dimensional supergravity, thus generalizing to the non-abelian case the realization of abelian T-duality at the supergravity level.