Dreams are important for two reasons:
(i) They help us sleep in spite of noise and other disturbances.
(ii) Some dreams provide a solution to certain problems.