Ptah was the main god of Memphis, the capital of Egypt for much of its history. He was the god of artists, craftsmen and masons. The name of his temple in Egyptian was Hwt-ka-Ptah, which the Greeks took as the name of the country - Hikuptah became Aiguptos, or Egypt, which is what we call it today.
Everything they teach about Egypt in most schools is distorted. The people of Egypt called their country Kemet not Egypt. Kemet means black land. Egypt is a Greek concept. Egypt is derived from the Greek word Aegyptos. The greeks called the kemetians language hieroglyphs, but the people of Kemet called their language Medu Neter. Even the names we learn of the gods are wrong.