Donepezil is in a class of medications called cholinesterase inhibitors. It improves mental function (such as memory, attention, the ability to interact with others, speak, think clearly, and perform regular daily activities) by increasing the amount of a certain naturally occurring substance in the brain.