The referee will clearly show a red card to a player who has committed a very serious offence.
They must leave the field immediately and take no further part in the game.