Melatonin (MT) is involved in physiological processes in plants under abiotic stress. In this study, we investigated the effects of melatonin on maize photosynthetic and antioxidant capacities under salinity stress. Our findings indicated salinity stress significantly inhibited maize growth. However, exogenous MT promoted maize growth and antioxidant capacity. Superoxide dismutase, peroxidase, and catalase increased by 138.8, 38.7, and 32.0%, respectively, while H2O2 and malondialdehyde decreased by 23 and 31%, respectively. Exogenous MT also improved maize photosynthesis under salinity stress. Net photosynthetic rate, transpiration rate, and stomata' conductance increased by 134, 67.2, and 46.3%, respectively. Maximum quanturnyield of PSII photochemistry, effective quantum yield of PSII photochemistry, photochemical quenching coefficient, and electron transport rate increased by 5.8, 70.4, 65.3, and 41.0%, respectively. Therefore, our findings suggested exogenous MT significantly ameliorated maize physiological and photosynthetic adaptation under salinity stress, thereby providing helpful guidance for maize cultivation in areas of high salinity.