Does God have a gender?

Does God have a gender? Though Church teaching, in line with its Doctors, holds that God has no literal sex because they possess no body (a prerequisite of sex), classical and scriptural understanding states that God should be referred to (in most contexts) as masculine by analogy.

Though Church teaching, in line with its Doctors, holds that God has no literal sex because they possess no body (a prerequisite of sex), classical and scriptural understanding states that God should be referred to (in most contexts) as masculine by analogy.