Static electricity is the result of an imbalance between negative and positive charges in an object. When completely in balance no charge can be measuerd. Imbalanced charges can build up on the surface of an object until they find a way to be released or discharged by sparks or other means. Rubbing certain materials against one another is one way to create a static charge by transfering negative charges, or electrons from one to the other non-conductive material.