There had been a large basilica church built in the 4th century and dedicated to Holy Wisdom in Constantinople; during the Nika riots of 532 that building was burned down. Justinian I decided to rebuild it.
Isidore of Miletus had earlier taught physics at Alexandria and then later at Constantinople, and had written a commentary on earlier books on building.