The present invention provides Cephem compounds which have a wide antimicrobial spectrum and have potent antimicrobial activity against beta-lactamase producing Gram negative bacteria as follows:a compound of the formula:or its ester, a compound protected at the amino on the ring in the 7-side chain, a pharmaceutically acceptable salt, or a solvate thereof.