Data sharding is a technique used in database clusters to horizontally partition data across multiple nodes based on a shard key. Each shard contains a subset of the data, allowing for parallel processing and improved scalability. Data sharding helps distribute the workload across nodes and enhances query performance.