The blood-brain barrier is a specialized barrier formed by tight junctions between cells lining the blood vessels in the brain. It limits the passage of substances, including pathogens, from the bloodstream into the brain, protecting the central nervous system from infection.