Event sourcing means, instead of storing only the data's current state, storing the full series of actions taken on it. A bank account doesn't store «balance: $70»; it stores «deposit $100» and «withdrawal $30», and the balance is computed. That store is the official source of truth. It's like an accounting ledger: nothing is erased, each movement is written down and the total comes from adding them.
Event sourcing is often confused with event-driven architecture (EDA), but they're different things. EDA uses events to connect services. Event sourcing uses events as the state: it's another way to store data. Also, event sourcing is 1 of several patterns to implement EDA. It's like the difference between sending letters (communicating) and keeping a personal diary (storing what happened).
The event store is append-only: each new event goes at the end and earlier ones are never edited or deleted. If something was wrong, the old event isn't fixed: a new one is added that compensates it. It's like a notebook written in pen: you can't erase, so if you made a mistake, you write a correction on the next line.
The event store is the system's official record and is used to materialize objects: build the current state by replaying the events in order. If a database breaks or there's a bug, everything can be rebuilt from the events. It's like a recorded match: if you missed the result, you watch the recording and know how it ended, goal by goal.
Event sourcing has advantages: it's excellent for real-time reporting, it survives failures because data can be rebuilt from the events, it's very flexible (any kind of message can be stored) and it's the preferred way to have an audit log in heavily regulated systems, like banks. An audit log records who did what and when. It's like a plane's black box: it keeps every step to know exactly what happened.
Event sourcing has disadvantages: it needs a very efficient network, because huge numbers of events move around; it needs a reliable way to control message formats, like a schema registry, which stores what each event type looks like; and each event carries different content (payload). It's like an archive with 50 kinds of forms: without a catalog of what each looks like, nobody can read them.