The invention relates to a toothpaste tube with two detachable ends. The toothpaste tube with the two detachable ends comprises a front tube body (1), a rear tube body (15) and a pushing device, wherein pitons (2) are slidably connected into the front tube body (1) and the rear tube body (15) correspondingly, and the pushing device is located between the front tube body (1) and the rear tube body (15) and can push the pistons (2) to move in the axial direction of the front tube body (1) and the axial direction of the rear tube body (15). A toothpaste outlet (11) and a sealing cover (12) for sealing the toothpaste outlet (11) are arranged at the end, away from the pushing device, of the front tube body (1), and a toothpaste outlet (11) and a sealing cover (12) for sealing the toothpaste outlet (11) are arranged at the end, away from the pushing device, of the rear tube body (15). The toothpaste tube can store two kinds of toothpaste at the same time and can be detached to be cleaned, so that repeated using is achieved, the using cost is reduced, and waste discharge is reduced.