Rulers of certain types of realm get the option in certain circumstances. I don't remember the exact criteria.
I got it when my capital (realm is a theocracy) was in the process of being taken over; description made it sound like it only appears if you are well and truly boned, but maybe you have allies coming in or you just want to give the enemy the finger.