A polyaxial bone anchoring device includes a bone anchoring element having a shank and a head, a head receiving part having a first end, an open second end, and a hollow interior portion in communication with the open second end for receiving the head therein, the head receiving part being flexible for clamping the head, a locking ring configured to be mounted around the head receiving part and having a rod receiving portion, a cap configured to be connected to the head receiving part, and a locking element configured to extend from the cap to engage an inserted rod, wherein the head is pivotable in and the cap and the locking ring are rotatable relative to the head receiving part, and wherein when the locking element is tightened, an inserted rod and an angular position of the bone anchoring element are locked relative to the head receiving part.