It is up to the port director to decide if pilotage services are compulsory or not. In the Port of Genoa, it is compulsory to use the services of the Corpo dei piloti di Genoa. See http://www.pilotigenova.it/home