Ptah (/pəˈtɑː/; Ancient Egyptian: ptḥ, probably vocalized as Pitaḥ in ancient Egyptian) is the demiurge of Memphis, god of craftsmen and architects. In the triad of Memphis, he is the spouse of Sekhmet and the father of Nefertum.
This is where they derive their power!