A counterclaim is a legal claim made by a defendant against the plaintiff in response to the original complaint. It serves as a way for the defendant to assert their own claims and defenses, often related to the same transaction or occurrence that led to the initial lawsuit. By filing a counterclaim, the defendant not only responds to the allegations but can also seek damages or relief, effectively turning the tables in the legal dispute.