For admission to its two great mosques buy a ticket at the booth by the foot of the steps.
The booth should be at the end of the steps.