The analogy of the sun (or simile of the sun or metaphor of the sun) is found in the sixth book of The Republic (507b-509c), written by the Greek philosopher Plato as a dialogue between Glaucon (Plato's elder brother) and Socrates (narrated by the latter). Upon being urged by Glaucon to define goodness, a cautious Socrates professes himself incapable of doing so. Instead he draws an analogy and offers to talk about "the child of goodness" (Greek: "? "). Socrates reveals this "child of goodness" to be the sun, proposing that just as the sun illuminates, bestowing the ability to see and be seen by the eye, with its light so the idea of goodness illumines the intelligible with truth. While the analogy sets forth both epistemological and ontological theories, it is debated whether these are most authentic to the teaching of Socrates or its later interpretations by Plato.
Plato's use of such an analogy can be interpreted for many different reasons in philosophy. For example, Plato uses them to illustrate and help illuminate his arguments. In the Analogy of the Sun, Socrates compares the "Good" with the sun. Plato might be using the image of the sun to help bring life to his arguments or to make the argument more clearly understood. David Hume once wrote, "All our reasonings concerning matters of fact are founded on a species of Analogy."
Plato makes the claim that "sight and the visible realm are deficient." He argues that for the other senses to be used all that is needed is the sense itself and that which can be sensed by it (e.g., to taste sweetness, one needs the sense of taste and that which can be tasted as sweet), but "even if a person's eyes are capable of sight, and he's trying to use it, and what he's trying to look at is coloured, the sight will see nothing and the colours will remain unseen, surely, unless there is also present an extra third thing which is made specifically for this purpose." The third thing Plato is talking about is light. Through this analogy he equates that which gives us natural light, the sun, as the source of goodness in this world.
In other words, Plato is saying that the true nature of reality cannot be comprehended by the ordinary senses. Thus, we should make use of the mind rather than the sensory organs to better understand the higher truths of the universe. The mind, much like sight, requires a "third thing" to function properly, and that third thing is Plato's idea of goodness. He likens a mind without goodness to sight without light; one cannot operate at peak efficiency without the other.
Having made these claims, Socrates asks Glaucon, "...which of the gods in heaven can you put down as cause and master of this, whose light makes our sight see so beautifully and the things to be seen?" (508a) Glaucon responds that both he and all others would answer that this is the sun. Analogously, Socrates says, as the sun illuminates the visible with light so the idea of goodness illuminates the intelligible with truth, which in turn makes it possible for people to have knowledge. Also, as the eye's ability to see is made possible by the light of the sun so the soul's ability to know is made possible by the truth of goodness.
The allusion to "...that which becomes and perishes..." relates to all of that which is perceived by the bodily senses. The bodily senses make it clear that all visible things are subject to change, which Socrates categorizes into either the change of becoming or the change of perishing. Socrates argues that the bodily senses can only bring us to opinions, conveying an underlying assumption that true knowledge is of that which is not subject to change.
Instead, Socrates continues, knowledge is to be found in "... that region in which truth and real being brightly shine..." (508d) This is the intelligible illuminated by the highest idea, that of goodness. Since truth and being find their source in this highest idea, only the souls that are illumined by this source can be said to possess knowledge, whereas those souls which turn away are "...mingled with darkness...". This subject is later vividly illustrated in the Allegory of the Cave (514a-520a), where prisoners bound in a dark cave since childhood are examples of these souls turned away from illumination.
Socrates continues by explaining that though light and sight both resemble the sun neither can identify themselves with the sun. Just as the sun is rated higher than both light and sight, so is goodness rated more highly than knowledge and truth. It is goodness which allows us to know the truth and makes it possible to have knowledge. Hence goodness is more valuable than truth and knowledge as it holds a higher place. Through this analogy, Socrates helped Glaucon come to the realization that Goodness is of inestimable value, being both the source of knowledge and truth, as well as more valuable and unattainable than both.
Socrates also makes it clear that the sun cannot be looked at, so it cannot be known from sense perception alone. Even today, we still use all kinds of mathematical models, the physics of electromagnetic measurements, deductions, and logic to further know and understand the real sun as a fascinating being. The actual being is always far beyond our words, our thoughts, and our measurements. We truly can never fully look at and know the entire sun, by the empirical method.
Plato further equates the sun to the ultimate form of goodness by calling them both sources of "generation". The sun not only makes objects visible but is necessary for their growth and nourishment, similarly to how goodness not only makes it possible for things to be, but also allows for things to be known.
Socrates' main concern was that he did not want his followers to place Goodness, Knowledge, and Truth all on the same level. You can achieve Goodness from Truth and Knowledge, but just because you have Truth and Knowledge that does not mean you have Goodness. Plato writes:
Ultimately, the Good itself is the whole point. The Good (the sun) provides the very foundation on which all other truth rests. Plato uses the image of the sun to help define the true meaning of the Good. The Good "sheds light" on knowledge so that our minds can see true reality. Without the Good, we would only be able to see with our physical eyes and not the "mind's eye". The sun bequeaths its light so that we may see the world around us. If the source of light did not exist we would be in the dark and incapable of learning and understanding the true realities that surround us.
Incidentally, the metaphor of the sun exemplifies a traditional interrelation between metaphysics and epistemology: interpretations of fundamental existence create--and are created by--ways of knowing. It also neatly sums up two views for which Plato is recognized: his rationalism and his realism (about universals).
Socrates, using the Simile of the Sun as a foundation, continues with the Analogy of the Divided Line (509d-513e) after which follows the Allegory of the Cave (514a-520a). In relation to the other metaphors, the intelligible method can help one to understand the Good, symbolized by the sun. The divided line gives the details of the four stage process of moving from opinions, or shadows, all the way up to mathematics, logic, deduction, and the dialectical method. The Good can be defined as the right relation between all that exists, from humans, nature, to the First Cause.