In law, an offense is a violation of the penal law.
In sports, offense is a general term for any situation in which a participant, or team thereof, is in a position to score.