Sharding is a technique used in database architecture to partition a large database into smaller, more manageable pieces called shards. Each shard contains a subset of the data in the larger database, and is stored on a separate server or cluster of servers.