The Royal Guards take the role of keeping the castle under control and making sure suspicious characters do not harm it or its residents. They are evidently employed against Maleficent.
The guards are seen at the christening of the newly born princess Aurora. They menace the evil fairy when she gives a curse on the baby. However, she frightened them before teleporting away.