Anticipatory bail is a legal provision that allows a person to obtain bail in advance of an arrest, protecting them from potential incarceration before they are formally charged with an offence.