Horizontal partitioning, also known as sharding, involves dividing a database table into smaller, more manageable pieces, where each piece holds a subset of the rows. This technique improves performance and scalability by allowing queries to be processed in parallel across multiple partitions, reducing the load on any single database instance.