M-harmonic functions with M-harmonic square are proved to be either holomorphic or antiholomorphic in the unit ball of complex n-space under certain additional conditions. For example, if u and u(2) are M-harmonic in the unit ball of C-2 and if u is continuously differentiable up to the boundary then u is either holomorphic or antiholomorphic.