Static electricity is the accumulation of electric charge on an object.
You see, our bodies become electrically charged from the friction between our shoes and the rug. Wear shoes with leather soles, or go barefoot whenever you can. You can also wear thin socks at home instead of slippers or shoes. If leather soles don't help, adhere some aluminum foil or some other thin metal to the soles of your shoes. Raise the humidity in your home with a humidifier.