A power tool has a housing, which includes a first housing and a second housing. The second housing is configured with a connecting hole, a first connecting part passing through the connecting hole connecting the first housing and the second housing, a protective layer, arranged on a surface of the second housing, an elastic portion, connected with the protective layer, arranged between the first housing and the second housing, and is integrally formed with the protection layer.