Fighting is usually performed by one or more enforcers on a given hockey team and is governed by a complex system of unwritten rules that players, coaches, officials, and the media refer to as "the code".
Some fights are spontaneous, while others are premeditated by the participants. While officials tolerate fighting during hockey games, they impose a variety of penalties on players who engage in fights.