The invention relates to a method for synthesizing a
betaine surfactant from natural oil by a one-pot method and the
betaine surfactant, and the method comprises the following steps: 1, placing the natural oil and N, N-dimethyl-1, 3-
propane diamine in a reaction container according to a
mass ratio of 7.5: 1-0.4: 1 at normal temperature, adding the natural oil and the N, N-dimethyl-1, 3-
propane diamine into the reaction container, and reacting for 2-4 hours; the
mass of the catalyst is 0.1-0.9% of the total
mass of 1, 3-
propane diamine; 2, mixing and stirring the reactants, heating to 120-190 DEG C, and carrying out
reflux reaction for 5-9 hours; 3, after the reaction is finished, cooling to
room temperature, and adding water which is 0.4-4.1 times of the total mass of the mixture, chloroacetate which is 0.6-1.8 times of the total mass of the mixture and a cosolvent which is 0.4-2.3 times of the total mass of the mixture; and 4, carrying out a stirring
reflux reaction on the mixture at 60-110 DEG C for 4-8 hours, and after the reaction is finished, cooling to
room temperature to obtain a finished product. According to the technical scheme, the synthesis process of the traditional long-chain
fatty acid amide betaine is simplified, the process of preparing
fatty acid by hydrolyzing natural
oil can be reduced, the steps are simple, and the production cost is effectively reduced. Therefore, different types of oil-displacing agents suitable for oil fields are prepared.