error and correction;-
He also had a gun(to defend himself) with.
=which is used to defend
=adjective clause(gun)
=used to give more information about the gun
=used to be exact usage about the gun that you mean
=to defend himself.
---(with)=preposition.
used in question Sir Winston Churchill once asked,
This is the kind of English up (with which) I'll not put.
----(put)=preposition.