In basketball, the five-second rule, or five-second violation, is a rule that helps promote continuous play. There are multiple situations where a five-second violation may occur.