God is Light
Akin observes:
1 John 1:5 would seem to provide the key that reveals the connection between the prologue (1 John 1:1-4) and these verses. John affirms that God is light and has no darkness in him at all in order to rule out claims to fellowship with him by those walking in the darkness. In short, John introduces a statement concerning God's nature to define the qualifications necessary for fellowship with God.
John described God's holiness by equating him with light. "God is light" recalls the opening chapter of John's Gospel in which Jesus is called "the true light" (John 1:9) that broke into a world of sin and darkness. Here, and in his Gospel, John alluded to the primeval light that broke into the darkness of creation (Gen. 1:1-4). In these passages darkness represents sin and death; light epitomizes goodness and life.
Although light is closely associated with the glory of God, here it is more closely associated with God's moral holiness and the fact that he has no connection with the darkness of evil. God is perfect, wholly without evil, and his people should seek him for that same quality. See "The Glory of God: Who Gets the Glory?" below. See WCF 3.1.
God is light. This phrase summarizes the main theological "message" of First John. With this, John defines both the character of God and of those who have an authentic knowledge of God. But, this introduces a question: "How is the reality of sin in every human life remedied?" no darkness at all. See WCF 3.1. In this phrase, literally translated, "not one bit of darkness," John is unequivocally stating evil is not associated with God.