The invention relates to a pile driver. The existing pile driver is usually heavy and can be normally operated by two or even more people, and an air source is very inconvenient to install and carry. The invention provides the pile driver, which comprises a box body, a lifting handle, an air cylinder, a piston, a striking hammer, a casing, a crankshaft, a connecting rod and a transmission device. The pile driver is characterized in that the pile driver further comprises an iron anvil and an iron anvil holder, the iron anvil comprises a striking part and a body used for being fit with the casing, a through hole fit with the striking part is formed in the iron anvil holder, the striking part of the iron anvil penetrates through the through hole and is fit with the striking hammer, and the body is limited by the iron anvil holder; a No.1 hole, a No.2 hole and a No.3 hole are sequentially formed in the air cylinder from bottom to top, an air passage is formed in the box body, and the No.1 hole, the No.2 hole and the No.3 hole are communicated with the air passage. The pile driver has the advantages that the structure is simple, the design is reasonable, the striking force of the striking hammer is great, the vibration is small, the operation comfort is good and the service life of sealing pieces is long.