The offside rule means that there have to be at least two defenders between the attacker and the defenders' goal when the attacker's teammate passes the ball to him/her. One of the two defenders often is the goalkeeper.