Reason for blood-brain barrier.

What is the reason a blood-brain barrier is essential? Describe the structure of the blood-brain barrier and how does the structure of the blood-brain barrier relate to its function?