A comprehensive study of periodic trajectories of the billiards within ellipsoids in d-dimensional space is presented The novelty of the approach is based on a relationship established between the periodic billiard trajectories and the extremal polynomials on a systems of d intervals on the real line