The Kaaba is a large cube-shaped building located inside the mosque known as al-Masjid al-Haram in Mecca , Saudi Arabia . The Kaaba ( ' , ) is a cube-shaped building in Mecca , Saudi Arabia , and is the most sacred site in Islam .