A closure for a container has an upper part (1) that can be connected to the container. The upper part (1) has an opening (2) and an outer hollow body (3). An inner hollow body (4) is arranged coaxially in the outer hollow body (3) with an intermediate space therebetween. A lower part (7) in the form of a hollow body can be displaced longitudinally in the intermediate space. A plug (5) is held coaxially in the lower part (7) and opens or closes the opening as the lower part (7) is displaced longitudinally in the intermediate space.