Saudi police arrested an apparently ‘mentally disturbed’ man who tried to set himself on fire at Islam's holiest site, the Grand Mosque in Makkah, a police spokesman said on Tuesday.

The man, in his 40s and a Saudi citizen, ‘poured petrol on himself and tried to set it alight,’ Grand Mosque police spokesman Major Sameh al-Salami said.

‘His behaviour gives the impression that he is mentally disturbed.’

The incident happened on Monday night right next to the Kaaba, the cubic stone structure at the heart of the mosque.

Pilgrims and police escorted the man away before he could light the petrol, footage posted on social media showed.

Witnesses told Saudi media that the man also tried to set fire to the kiswah, the black and gold silk curtain that covers the Kaaba.

One witness told the Sabq news website that the man had been uttering ‘takfiri’ slogans, referring to extremist groups blamed for numerous attacks worldwide.

The huge flow of pilgrims into the Grand Mosque makes security checks at the gates extremely difficult.

In November 1979, the Grand Mosque was seized by more than 400 fundamentalists led by Saudi Juhayman al-Oteibi. They seized pilgrims as hostages and it took special forces a fortnight of fierce gun battles to retake the mosque compound.