A tap is the act of striking the opponent's body or the mat with the hand, or verbally declaring "tap," to signal the end of a match when caught in a joint lock or choke. It is the most important safety device in Jiu-Jitsu, allowing serious injury to be avoided by tapping.
The philosophy that "tapping is not losing, it's learning" is central to Jiu-Jitsu culture. Taps are exchanged routinely during sparring in practice, and it is not a source of shame. Conversely, refusing to tap when a technique is clearly locked in is considered dangerous behavior that betrays the trust of your training partner. In competition, the referee may stop the match as a "verbal tap" or "technical submission" if they judge the submission is fully applied, even without a physical tap.
The culture of tapping is one of the factors that makes Jiu-Jitsu a relatively safe sport despite being full-contact. An environment where training partners are not injured and daily training can continue is impossible without the mutual respect for the tap.