T-duality has long been well understood locally via the Buscher rules. Global T-duality in the presence of an arbitrary background is much more involved. It relates backgrounds of different topology and can be seen to map 'regular' or commutative geometries to noncommutative ones. I will give a brief overview of these attempts at studying T-duality and show how T-duality acts very naturally in the context of Hitchin's generalized geometry. I will show that T-duality is an automorphism of the Courant bracket in the most general sense and give an example. If time permits, I will discuss applications to Poisson-Lie T-duality.