The EC number is assigned by the European Chemicals Agency (ECHA) under the REACH regulation. It is given to substances that are either pre-registered or registered under REACH. The process involves submitting detailed information about the substance, including its chemical composition, structure, and potential uses.