The purpose of the “noble lie” in the “city in speech”

What is the purpose of the “noble lie” in the “city in speech” of Plato’s Republic?