Endure is a defensive move that guarantees your Pokémon survives the next hit with at least 1 HP remaining. It's a way to buy a turn — set up, heal, or strike back when you'd otherwise be knocked out.
Don't confuse it with Encore, which forces the opponent to repeat the last move they used for a few turns.