The mansion you just saw used to belong to 'Till the World Ends' hitmaker Britney Spears!

She bought the mansion during her darker days back in 2007 -- remember the head shaving incident (among others) after her tumultuous divorce? -- but now the newly engaged songstress is living happily in a rental home with soon-to-be hubby Jason Trawick and her two sons.

Even though the buy was labeled impulsive by many real estate experts, it's easy to see why Brit was attracted to the Mediterranean-style villa. It boasts five bedrooms, six bathrooms, a beautiful kitchen and an outdoor pool and spa. It's also located in the super exclusive Summit neighborhood, which is a wealthy gated community located in Beverly Hills.

Check out more pictures of Britney's old home by clicking here.