In this study the relativistic effects (the geodetic precession and the geodetic nutation, which consist of the effect of the geodetic rotation) in the rotation of Mars satellites system for the first time were computed and the improved geodetic rotation of the Solar system bodies were investigated. The most essential terms of the geodetic rotation were computed by the algorithm of Pashkevich (2016), which is applicable to the study of any bodies of the Solar system that have long-time ephemeris. As a result, in the perturbing terms of the physical librations and Euler angles for Mars satellites (Phobos and Deimos) as well as in the perturbing terms of the physical librations for the Moon and Euler angles for major planets, Pluto and the Sun the most significant systematic and periodic terms of the geodetic rotation were calculated. In this research the additional periodic terms of the geodetic rotation for major planets, Pluto and the Moon were calculated.