It arises from the transverse processes of the last four cervical vertebrae, and is inserted into the mastoid process.