The main goal of sharding is to improve database scalability, availability, and performance. By distributing the workload across multiple servers, the database can handle more traffic and larger data volumes than a single server would be able to handle.