Rev 11:8

8 Their dead bodies will be in the street of the great city, which spiritually is called Sodom and Egypt, where also their Lord was crucified. 

their dead bodies will be in the street – the Greek word for “street’ is also used to denote a public square. It is a wide area of public viewing. In other words, the world will watch them.

of the Great City – this is the Great City of Mystery Babylon, the Great Harlot, see Rev 17:18.

which spiritually is called Sodom – Sodom was the most sinful city in the Old Testament. The “spiritual” Sodom is City of the Great Harlot.

and Egypt – as mentionned, this is an analogy to the captivity of God’s people in Egypt, as referenced in verse 6, by “the power to strike the earth with a plague.”

where also their Lord was crucified – Jesus was also killed “in the street,” in public for all to see.