The Byzantines commissioned it as a Greek Orthodox cathedral. The Ottomans conquered it and turned it into an ornate mosque. Then, secular revolutionaries converted it into a monument to two faiths. Its ownership and usage have become a perennial political debate.