A firewall rule is a predefined set of criteria or instructions that determine how a firewall should handle incoming or outgoing network traffic. It helps filter, allow, or block specific types of traffic based on defined security policies or access control lists.