The blood-brain barrier protects the brains from certain classes of compounds while allowing other classes of compounds to have free access.