At the heart of algebraic geometry lies the op-equivalence between commutative rings and affine schemes, i.e., $$\mathrm{CRing}^{\mathrm{op}}\simeq \mathrm{Aff\,Sch}.$$
At the heart of homotopy theory lies the equivalence of $\infty$-groupoids and spaces, i.e., $$\infty\text{-}\mathrm{Gpd}\simeq \mathrm{Spc}.$$
On the lefthand sides are (different but related) algebraic structures and on the right hand side are (different but related kinds of) spaces. Can something nontrivial (and cool) be said about the similarities here?