In football, the offside rule states that a player is in an offside position if they are nearer to the opponent's goal line than both the ball and the second-to-last defender when the ball is played to them. However, it's important to note that it is not an offense to be in an offside position, but rather to be actively involved in play from that position.