Viscoelastic compositions are disclosed herein containing an effective amount of one or more random or structurally defined polycationic quaternary ammonium compounds for controlling the viscoelasticity of the composition. In at least one aspect, the present technology provides polycationic quaternary ammonium compounds comprising dissymmetric bis-quaternary compounds. In another aspect, the present technology provides viscoelastic compositions comprising polycationic quaternary ammonium compounds that comprise dissymmetric bis-quaternary compounds. In yet another aspect, the present technology provides polycationic quaternary ammonium compounds comprising a carboxylate functional polycationic quaternary ammonium compound. Preferred viscoelastic compositions of the present technology maintain viscoelasticity at a temperature greater than about 80° C., preferably greater than about 100° C. or about 110° C. when the amount of the one or polycationic quaternary compounds is less than about 10% by weight based on the total weight of the composition.