You are the light of the world. –Mt. 5:14
In the ancient near East, Israel was intended to be a light for the nations (Is. 49:6). Israel was to be so utterly righteous and just and different from the surrounding nations, that the nations would notice Israel's flourishing and desire the God of Israel to be their own. Unfortunately, Israel failed miserably to be bright enough to attract all the other nations to Yahweh. However, God also said His servant coming out of Israel would be a light to the nations (Is. 42:6). Plus, the righteousness of the entity would determine the brightness of the light (51:4).
So, when Jesus shows up on the scene, preaching the sermon on the mount to a Jewish audience, he invokes the well-known metaphor. He reminds his audience that they are meant to be a light to the nations. Only this time, Jesus tweaks the plan. People now receive righteousness by believing that Jesus—God's chosen servant spoken of in Isaiah—gives them his own righteousness. Then, Jesus' righteousness flows out of the individual in such a way that other people see it and embrace the Father, likewise glorifying and serving Him out of Jesus' righteousness. That's why Jesus says elsewhere in the sermon, "Seek first the kingdom of God and his righteousness..." (6:33, emphasis added). That's why He also says, "Let your light shine before men in such a way that they may see your good works, and glorify your Father who is in heaven" (5:16).