A sandbox is a cyber security mechanism which separates running programmes to prevent infection of the system.
The sandbox is used to execute code that is untested or programmes that are untrusted. These may come from unverified third parties or untrusted websites.
As these programmes or code may contain viruses, the sandbox provides a safe environment for the virus to execute in.