The BBB is primarily formed by endothelial cells of the brain's capillaries, which are connected by tight junctions. These cells are surrounded by a basement membrane and supported by astrocytes and pericytes. The tight junctions restrict the passage of molecules, making the BBB selectively permeable.