<font color='#000080'>Dehydration causes headaches (can be really severe!) so make sure you drink plenty of water before diving. Don't drink booze the night before and stay off the coffee prior to diving. Fitting a pee-valve to your dry suit helps for when you are properly hydrated
Blocked sinuses can also give you severe headpain which can be mistaken for 'headaches'.
HTH
Mark.