The invention discloses a multifunctional tamping machine which comprises a bottom plate, a first bracket device, a cylinder device, a second bracket device, a mobile device and a compaction device, wherein a rolling wheel is arranged on the bottom plate; the first bracket device is composed of a first supporting rod, a first slanting rod, a holding frame, a first bracket, a first positioning rod and a first transverse rod; the cylinder device is composed of a cylinder, a push rod, a push block, a second transverse rod, a second slanting rod, a third transverse rod and a third slanting rod; the second bracket device is composed of a second supporting rod, a second bracket, a third bracket, a fourth slanting rod and a first sliding block; the mobile device is composed of a mobile rod, a fixed block, a first spring, a buffer ring and a first vertical rod; and the compaction device is composed of a horizontal plate, a second spring, a fourth transverse rod, a second vertical rod, a rotational block, a compaction plate and a third spring. The multifunctional tamping machine can rapidly and effectively compact the inclined surface, is remarkable in compaction effect and good in effect, can completely meet the needs for existing small-sized compaction and ensures the construction efficiency to be greatly improved.