To provide a container with a cap that enables further improvement in usability by improving operability of a cap unit when opening and closing an upper opening part of a container body.SOLUTION: A container with a cap includes a container body 2 whose upper part is open, and a cap unit 3A that can be detachably attached to the container body 2. A peripheral edge part 20 is provided around an upper opening part of the container body 2. The cap unit 3A has a cap body 15 that is threadedly attached to the container body 2 while covering the upper opening part of the container body 2. The cap body 15 has an abutting part 21 that comes into contact with the peripheral edge part 20 when attached to the container body 2.SELECTED DRAWING: Figure 1