This paper describes an optical phase lock loop (OPLL) implemented as an ultraselective optical frequency comb line filter. The OPLL is based on a photonic integrated circuit (PIC) fabricated for the first time through a generic foundry approach. The PIC contains a distributed Bragg reflector (DBR) laser whose frequency and phase are stabilized by reference to an optical frequency comb generator. The OPLL output is a single-mode DBR laser line; other comb lines and noise at the output of the OPLL filter are attenuated by >58 dB below the peak power of the OPLLfilter output line. The OPLL bandwidth is up to 200 MHz, giving a filter quality factor greater than 1,000,000. The DBR laser can be tuned over 1 THz (8 nm), enabling different comb lines to be selected. Locking to a comb line with a frequency offset precisely selectable between 4 and 12 GHz is also possible. The coherence between the DBR laser and the comb lines is demonstrated by measurements of the heterodyne signal residual phase noise level, which is below −100 dBc/Hz at 5 kHz offset from the carrier. The OPLL-filter output can be up to 6 dB higher than the peak power of the comb line to be isolated by the filter. This optical gain is a unique characteristic which can significantly improve the SNR of communication or spectroscopy systems. This OPLL is envisaged to be used for high purity, tuneable microwave, millimetre-wave, and THz generation.