The well-pleaded complaint rule is a legal standard that determines whether a case can be heard in federal court based on the presence of a federal question in the plaintiff's initial complaint. This rule emphasizes that federal jurisdiction exists only when the plaintiff's statement of the claim itself raises a federal issue, not based on potential defenses or counterclaims that may involve federal law.