The invention relates to a dustbin with compression function, comprising a main body, a connection box, a feeding pipe and a switch, the connection box is fixed on one side of the inner top of the main body, and the switch is arranged on the side of the main body close to the connection box , the feed pipe is arranged horizontally, the side of the connection box close to the switch is sleeved on the feed pipe, the side of the main body close to the switch is sleeved on the feed pipe, and the main body is provided with A compression mechanism and a purification mechanism, the compression mechanism includes a compression assembly, a power assembly and two fixed assemblies, the compression mechanism includes a support plate, a compression plate, a connecting plate, a connecting rod, a moving plate, a first spring and a polished rod, the The purification mechanism includes a sealing assembly and an agitation assembly, and the garbage bin with compression function increases the capacity of loading garbage through the compression mechanism, and not only that, but also realizes the function of removing peculiar smell through the purification mechanism.