If a contractor is doing work with hazardous materials, when is he required to have a license?

If a contractor is doing work with hazardous materials, when is he required to have a license?