MgTixNi(x=0,0.1,and0.2)alloysweresuccessfullypreparedbymechanicalalloying(MA),andtheinfluenceofmillingtimeontheelectrochemicalcharacteristicsoftheelectrodeswasdiscussed.MgTixNialloysafter90hmillingdisplayedthebestelectrochemicalperformance.TheX-raydiffractionpatternsshowedthatthealloyball-milledfor90hwasamorphouswithawideneddiffractionpeak.Thecharge-dischargetestsindicatedthatthesealloyshadgoodelectrochemicalactivationproperties,andtheMgTi0.2Nialloyelectrodeexhibitedthebestcycleperformance.TheinitialdischargecapacityoftheMgTi0.2Nialloyreachedupto401.1mAh·g-1,andtheretentionrateofcapacitywas31.0%after30cycles,muchhigherthanthatofMgNi(17.3%).TheTafelpolarizationcurvesrevealedthatTiadditioncouldenhancetheanticorrosionperformanceofthesealloysinalkalisolution,whichwasresponsiblefortheamelioratedcyclicstabilityofthesealloyelectrodes.