The cylinder lock has a housing, a fixed hollow cylinder, a rotatable hollow cylinder and a locking bar. The locking bar has a mounting portion with planes, shoulders and a resilient element mounted around the mounting portion. The rotatable hollow cylinder has a non-circular mounting hole corresponding to and held slidably the mounting portion of the locking bar to enable synchronous rotation and relative sliding movement of the rotatable hollow cylinder and the locking bar to make the cylinder lock active. By the modification of the locking bar and the rotatable hollow cylinder, the structure of the cylinder lock is effectively simplified and the fabrication of the cylinder lock is easy.