According to an aspect of the present invention, a thermal printer includes a housing in which a space is formed, printing means disposed in the housing, a cover disposed in the housing and which comes into contact with and separates from the housing when rotated, thereby opening and closing the space, urging means for urging the cover in a direction away from the housing, an engaging part which is disposed in the housing and which prevents the movement of the cover in a direction away from the housing when engaged with the cover, a pressed part which is disposed rotatably in the cover and which moves the engaging part when pressed, thereby releasing engagement between the cover and the engaging part, and elastic means arranged to urge the pressed part in a direction away from the engaging part.