The Office of Rail and Road (ORR) with the consent, or in accordance with a general authority, of the Secretary of State may grant to any person a licence authorising  the person to be the operator. The ORR operates within the framework set by legislation, and is accountable through Parliament and the courts. https://www.orr.gov.uk/about