The invention discloses an MXene material and a preparation method and application thereof. A molecular formula of the MXene material is shown as M<n+1>X<n>Br<2> or M<n+1>X<n>I<2>, where M is Sc, Ti,V, Cr, Zr, Nb, Mo, Hf, Ta and the like, X is C and/or N element, and n is 1, 2, 3 or 4. The preparation method comprises the following steps: mixing a precursor MAX phase material, a transition metalbromide and/or a transition metal iodide, and carrying out a high temperature reaction to obtain the MXene material with Br or I as a surface group. The MXene material with Br or I as the surface group can be used independently as a large-capacity, high-stability halogen battery electrode, the -Br and -I groups can carry out a reversible redox reaction between MXene layers, a stable reaction source is provided for battery charging and discharging, and the feature is not possessed by other element groups such as -F, -Cl, and -O.