A mihrab is an important design element in a mosque that serves a critical function. It is a wall niche that helps orient the congregation towards Mecca during prayer.