ultimatum

a threat in which a person or group of people are warned that if they do not do a particular thing, something unpleasant will happen to them. It is usually the last and most extreme in a series of actions taken to bring about a particular result