The pharmaceutical composition of the present invention, which comprises spinosin or a spinosin-containing herbal extract, is a composition for preventing and treating cognitive function disorders, and can effectively improve memory and learning ability, and effectively treat and prevent cognitive function disorders such as dementia and amnesia.