Green chemistry: laccase in acetonitrile and buffer in the presence of O2 can synthesise benzimidazoles and benzothiazoles in good yields.