It basically puts everything that you're browsing into a "virtual space" where it does not directly affect the computer.
So, in a sense, if you browse a malicious site, and a script tries to install something, the virtual space will be affected, not your computer. Once you close that browser, the malicious code will be removed, and no harm done to your computer.
Get it?