User blog comment:Kaido King of the Beasts/Why Does Doflamingo Carry a Gun? - And Other Stupid Questions/@comment-5365454-20141129222329

Maybe because if his devil fruit powers get negated he can use it as a weapon.Or if he is about to die brutally from an enemy attacking him he could kill himself with it.