Theperformanceofmassivemultiple-inputmultiple-output(MIMO)systemislimitedbypilotcontamination.Toreducethepilotcontamination,uplinkanddownlinkprecodingalgorithmsareputforwardbasedoninterferencealignmentcriterion.Intheuplinkreceivingprocessing,thetargetfunctionalignsthepilotcontaminationandtheinterferencesignalstothesamenullspaceandacquiresthemaximalspacedegreeofthedesiredsignals.Theuplinkreceivingprecodingmatrixissolvedonmaximalsignaltointerferenceplusnoiseratio(SINR)criterionconsideringtheimpactofthepilotcontaminationonchannelestimations.Theuplinkreceivingprecodingmatrixisusedasthedownlinktransmittingprecodingmatrix.Exploitingthechannelreciprocity,itisprovedthat,iftheuplinkreceivingprecodingmatrixachievesmaximalSINR,theidenticalprecodingmatrixcanbeusedinthedownlinktransmissionandacquiresmaximalsignaltoleakageplusnoiseratio(SLNR).Simulationsshowthatthespectrumefficiencyoftheproposedalgorithmcanreachabout1.5timeshigherthanthatofpopularmatchedfiltering(MF)precodingalgorithm,andabout1.1timeshigherthanmulti-cellminimummeansquareerror(MMSE)precodingalgorithm.Theperformanceoftheproposedalgorithmcanbeimprovedapproximatelylinearlywiththeincreasingofthenumberofantennas.