Football Rule
Intentional grounding.
A quarterback cannot throw the ball away just to avoid a sack. Unless he follows the rules for doing exactly that.
The Rule
Intentional grounding is called when a quarterback, facing an imminent loss of yardage, throws a forward pass with no realistic chance of completion and no eligible receiver in the area. Two conditions must both be true for the penalty: the QB must still be inside the tackle box (the area between where the offensive tackles line up), and the ball must not reach the line of scrimmage.
The penalty is a loss of down and the ball is spotted at the location where the QB released the throw. If he was at the 30 and threw from the 25 while scrambling backward, the ball goes back to the 25. If the grounding happens in the end zone, it's a safety. The QB can legally throw the ball away if he's outside the tackle box and the ball crosses the line of scrimmage, which is why you often see quarterbacks rolling out before tossing the ball into the stands.
Why It Exists
Without intentional grounding, a quarterback could simply throw the ball at the ground every time the pass rush got close. Sacks would basically disappear from the game. The defense would never be rewarded for beating their blocks and getting to the quarterback. The rule forces the QB to either find an open receiver, take the sack, or get outside the pocket to throw the ball away legally.
The "outside the tackle box" exception exists because it shows the QB made an athletic play to escape pressure. If he has the awareness and mobility to get outside the pocket, the rules allow him to throw the ball away. This creates a fair balance. The defense is rewarded when they contain the QB in the pocket, and the QB is rewarded for making a play with his legs.
QB throws it at nobody's feet
The quarterback is pressured in the pocket and flips the ball at the ground with no receiver nearby. He never left the tackle box and the ball didn't reach the line of scrimmage. That's intentional grounding.
QB rolls out and throws it away
The quarterback scrambles outside the tackle box and throws the ball past the line of scrimmage. This is legal. Once the QB is outside the tackles and the ball crosses the line, he can throw it away freely.
Grounding in the end zone for a safety
The QB drops back into his own end zone, gets pressured, and throws the ball away with no eligible receiver nearby. Since the foul occurred in the end zone, the result is a safety. 2 points for the defense.
Take the sack or get outside.
Intentional grounding is one of the most misunderstood rules in football. Once you know the two conditions, you'll spot it every time.