What is the definition of ageism?

The discrimination of an individual or group on the basis of their age.

It often refers to the discrimination of the elderly, but can be used to described mistreatment because of age bias on any group.