Disclosed is a quinoline derivative compound of formula (Ia) or (Ib) as defined in the specification. The disclosed compound is used in the manufacture of a medicament for the treatment of a bacterial infection including Streptococcus pneumoniae, Staphylococcus aureus and Mycobacterium tuberculosis.