How does blockchain work?

Data is stored in interconnected blocks, secured by cryptographic hashes, creating a tamper-proof chain.