Police said the man was in his 40s.
A man tried to set himself alight with gasoline beside the Kaaba, the black-clad building towards which the world's Muslims face to pray, inside Makkah's Grand Mosque late on Monday but was arrested before he could do so, police in Saudi Arabia said.