The royal palace lies right in the heart of Rabat, and its area in front of it is open to the public. As a matter of fact, you can get quite close to the real palace before the guards start to feel uneasy. But quite honestly, what you see is only moderately impressive the real beauty begins is behind the walls.
Right across from the Royal Palace, the King's own mosque stands. Neither old nor terribly big, it still offers a fine example of Islamic architecture. Between it and the Royal Palace there is nothing but the wide square.