Custom firmware is a modification of the PSP that lets you do more with the device, such as running homebrew, applying cheats, and playing certain PlayStation 1 games, among other things.
On the PSP 2000 and older models, it's typically installed using a Pandora battery and a magic memory stick. The PSP 3000 requires a different, more involved method. Keep in mind that modifying your firmware can void warranties and carries some risk.