I have a terrible headache what would be the cause.?

Several reasons. It depends on how long you have- moreover if it is that severe you should go to er immediately as you be having subarachnoid hemorrhage or a tumor -- do not want to scare you, but you need get checked.