To keep the sandbox clean, make sure to cover it with a well-fitting lid when not in use and periodically sift through the sand for debris. Also, ensure that children wash their hands before and after playing in the sandbox.