Saudi Arabia says it has foiled a "terrorist action" against the Grand Mosque in Mecca - Islam's holiest site.
The building collapsed, injuring 11 people, including police officers. Five other suspected militants have been taken into custody, officials say.
Millions of Muslims from around the world have gathered in Mecca for the end of Ramadan.
Saudi officials released no further details about the foiled attack.