The present invention provides a compound exhibiting a strong antimicrobial spectrum against various bacteria, including gram-negative bacteria, or a pharmaceutical composition having an antimicrobial activity against carbapenem-resistant bacteria. Provided is a compound represented by formula (I), an ester thereof or a pharmaceutically acceptable salt thereof, or a hydrate thereof.(I)(In the formula, -W- is -S(=O)- or -S(=O)