Finding the best fitted hyperplane

Given a number of points in $\Bbb{R}^n$, how can you find (one of) the hyperplane(s) from which, according to the least square method, the points is closest located to? That is, minimizing the sum of the square distances from each point to the hyperplane.