The first chapter of Genesis mentions darkness from the initial description of the earth.
Genesis 1.2 reports that darkness covered the surface of the abyss.
Then God pronounces the creative word:
"Let the light be!"Genesis 1.3
The light appears in accordance with his will.
God then separates light from darkness and gives a name to day and night (Genesis 1.4-5).
This passage establishes a fundamental truth: light and darkness are not two opposing divine powers.
They belong to the order of creation, subject to the authority of the Creator.
Darkness is not presented, in this context, as an independent power capable of competing with God.
This statement distinguishes the biblical account from religious conceptions which attributed certain natural phenomena to particular deities.
In the ninth plague, this sovereignty is manifested in an exceptional way.
God commands Moses to extend his hand toward heaven, and darkness covers Egypt.Exodus 10.21-22
The God who made the light appear in the beginning also has the authority to remove it temporarily.