Where can you catch Regirock?

To get Regirock, go to the south part of the desert and you'll find him in the slab of rock. once you do a few things, the door should open to it