A latching mechanism for latching a housing of an optical transceiver to be inserted through a window on a panel of a communication device into a cage provided in the communication device. The latching mechanism has: an opening formed on a side wall of the housing; an engaging member housed in the housing; a spring member being operable to push out the engaging member in its release state; a pulling member being operable to draw the engaging member in the housing by transforming the spring member toward the front end of the housing; and a movable sleeve being operable to move in a direction to leave the housing.