Goaltending is one of the least intuitive rules in basketball, and it exists because the game would otherwise be unplayable for anyone shorter than the tallest defender on the floor.
The problem was defenders camping at the rim
As players grew taller, a defender could stand beneath the basket and knock away any shot as it dropped toward the hoop.
That made shooting from distance pointless. A defender did not need to contest the release, only wait beneath the target and intercept the ball's descent.
The result was a game decided almost entirely by who had the tallest player, which was neither a good spectacle nor a fair contest of skill. Rulemakers intervened because the sport was narrowing to a single physical attribute.
The rule protects the ball on its way down
Once a shot has begun its downward flight toward the basket, it may not legally be touched by a defender.
Touching it anyway results in the basket being counted as if the shot had gone in, which removes any benefit from the illegal block.
Awarding the points rather than merely giving possession is important, since a defender would otherwise trade a certain two points for an uncertain one. Making the penalty exact removes any calculation from the defender's mind.
Basket interference covers the rim and net
A related restriction applies to touching the ball while it rests on the rim or passes through the cylinder above the basket.
It binds attackers too. A player tipping in his own team's shot while it sits on the rim commits a violation rather than scoring.
Both halves of the rule protect the same principle: once the ball is at the basket, the outcome belongs to the shot rather than to whoever can reach highest. The cylinder above the hoop is treated as untouchable space by both sides.
The upward phase remains fully contestable
A block on a shot still rising is entirely legal, which is why the timing of a defensive jump is such a precise skill.
Defenders aim to meet the ball early, at or just after release, before it reaches the apex of its arc.
The distinction between a spectacular block and a goaltending call is often a fraction of a second, which is why it is regularly reviewed on video.
Codes differ on the details
Not every rulebook treats the ball on the rim identically, and some permit contact that others prohibit once the shot has struck the hoop.
Players moving between competitions therefore adjust a reflex built over years, and early-season calls against them are common.
The underlying purpose is the same everywhere: to stop height alone from deciding whether a shot is allowed to finish.

