A compound which is a thiazole derivative of Formula (I), or a pharmaceutically acceptable salt thereof,wherein R1, R2, n, Z, L, Ring B, R4 and n are as herein defined. Such compounds are useful in the prevention and treatment of bacterial infection. In particular, the compounds are inhibitors of metallo-β-lactamase and are useful in combination with antibiotic agents such as carbapenems in the treatment of infection caused by bacteria that are resistant to treatment with antibiotic agents when administered alone.