A brain aneurysm develops when a blood vessel wall weakens, creating a balloon-like bulge that can threaten life if ruptured.