“if you’re wondering if you can visit Mecca as a tourist, the simple answer is no, unless you’re a Muslim. Saudi Arabia’s government restricts entry to Mecca to Muslims only. Documentation will be checked upon entry, and anyone not showing proof of being a Muslim will be denied access. The penalty for non-Muslims attempting to enter is deportation from the country and a possible fine. This rule applies whether you’re trying to enter the city by plane, car, bus, or train.
During their pilgrimage, Muslims visit several sacred sites in Mecca, including the Sacred Mosque (al-Masjid al-Harami) and the Kaaba, the most holy place in Mecca and Islam. Other locations include Mina, Muzdalifah, the Hill of Arafat, Jabal Al Noor, and Jabal Al Thur, each with religious significance.”
Forgot to mention...I’ve spent some time on the Arabian Peninsula (the UAE and Oman) so I’m not entirely clueless on how things work.