If god created earth, who created god?
If the first of gods created other gods, who created him?
In the judeo christian belief God is eternal, having no beginning or end. In other words he wasn't created, he always has been in existence. I really don't know enough to comment about other faiths' views on this topic.
God always was and always will be.
God was created by people, so that means the ancestors of believers created God.
He is alpha omega beginning and end He was not created he created everything he was here since the beginning and will be here when the world ends
Hence the fallacies of religion