The expression "hold/put a gun to somebody’s head" means to pressure or force someone into doing something by threatening them with violence. It is an extreme or drastic way of making someone do what you want. This expression is commonly used in situations where someone is being commanded to do something immediately and forcefully, and usually suggests that they have no other option. For example, you might say "The burglars put a gun to my head and demanded all my money."