The transverse ligament restricts flexion as well as anterior displacement of the atlas, whereas the alar ligament prevents rotation of the upper cervical spine.