Masons date back to a 1390 poem.
And if the Anti-Masons are to be believed,
they've got
conspiracy tendrils all over ... shhhhh.
Dude wrote a book from the inside post civil war.
Explains all sorts of stuff, but leaves out the Rituals (!!) .
Perhaps could call this Transmutation, and
consider Newton was into Alchemy too.
Building castles was "magic" back in the day.
India has Vastu Shastra, in the same vein.
https://en.wikipedia.org/wiki/Vastu_shastraThough maybe for d&d it should be considered
more like temple building, than a wizard school.