Abstract Two-dimensional (2D) Ti3C2T x MXene-based materials have attracted widespread attraction in the field of energy storage owing to their high conductivity and accordion-like structure. However, challenges such as restacking and oxidative degradation of the Ti3C2T x MXene structure lead to poor stability, low conductivity, low specific capacitance and, consequently, a low specific energy, hindering their extensive adoption at an industrial scale. In this study, a ternary MXene/polyaniline (PANI)/ZnO (MPZ) composite has been synthesized via surface engineering of two-dimensional (2D) MXene using one-dimensional (1D) PANI nanowires and ZnO nanoparticles to enhance its specific energy and stability while sustaining its specific power. 1D PANI nanowires and ZnO nanoparticles act as spacers to prevent restacking, while also exposing the suppressed redox active sites of 2D MXene and preventing it from being oxidized by forming a porous conductive network all over the surface of the MXene. PANI and ZnO also provide additional electroactive redox sites by forming p–n heterojunctions, thus enhancing faradaic redox reactions and the specific capacitance of the MPZ composite. As a result, the overall electrochemical performance and stability of the ternary MPZ composite are enhanced due to the synergistic interactions among the individual components within the ternary MPZ composite. At a low current density of 0.1 A g−1, the ternary MPZ composite exhibited a maximum specific capacitance of 651.96 F g−1 and a highest specific energy of 32.59 Wh Kg−1 while maintaining a specific power of 60 W Kg−1 as compared to MXene and binary MP composite. Furthermore, it showcased exceptional cyclic stability over 10 000 cycles with 94.75% and 92.95% capacitive retention at 0.6 A g−1 current density and 40 mV s−1 scan rate, respectively. Thus, this current study highlights an effective strategy to enhance the specific energy of MXene-based supercapacitors through surface engineering and the construction of p–n heterojunctions within the composite.