A gnat's habitat depends on its species. However, a rule of thumb the insects often follow is access to food, moisture and protection, states Orkin's website. This usually comes by way of decaying ...