A cookie is a small text file that websites store on your computer to remember information about you and your preferences. Cookies maintain session state, track user behavior, and enable personalized experiences. They are fundamental to web browsing functionality.