Domes appear in religious and civic buildings across cultures and periods. They are prominent in Islamic architecture, but their use is not exclusive to it and their history cannot be reduced to one simple origin.
How a dome covers a space
A dome uses curved geometry to carry loads towards its supports. Over a square room, transitional elements such as pendentives or squinches connect different shapes. The actual structural system determines how forces are distributed.
Domes are not all alike
Proportions, materials, coverings and construction methods vary. An external dome may conceal a different inner covering or void. Exterior photographs alone cannot establish its construction or performance.
Avoid absolute historical claims
The Dome of the Rock is a prominent early example in Islamic architecture without needing to be described as the first dome ever built. Assessing or altering a dome requires engineering expertise and building records; a general explanation is not a structural assessment.