In order to develop a high-performance temporary plugging agent (TPA) in a low-temperature-dense reservoir in an oilfield, this paper reported the quaternary ammonium salt as TPA, which was synthetized by organic acids with stearamide. It possesses pH and temperature response properties, which can change gel viscosity by changing the pH and temperature. The maleic acid-derived TPA showed good performance that the viscosity can reach 6.12 × 105 mPa·s, the plugging rate can reach 97.51 %, and recovery rate of reservoir permeability can reach 95.31 %. The TPA possessed potential application probability in the diversion fracturing of low permeability reservoir oilfield.