Offside in rugby occurs when a player is in a position that is ahead of a teammate who is carrying the ball or ahead of the ball itself during play. Being offside can result in penalties that can be taken as kicks or scrums, depending on the situation.