The doctrine of necessity is the basis on which extra-constitutional actions by administrative authority, which are designed to restore order or attain power on the pretext of stability, are considered to be lawful even if such an action contravenes established constitution, laws, norms, or conventions.