Reinforcement learning trains AI agents by rewarding them for taking optimal actions to maximize a numerical reward signal. It enables agents to continuously improve through trial-and-error interactions with an environment.