This lecture delves into the ethical implications of brain-computer interfaces (BCIs) and the societal challenges at the human-machine interface. It explores the integration between human cognition and artificial intelligence systems, the direct communication pathway established by BCIs, and the potential cognitive and affective enhancements. The presentation discusses the ethical rules for neuroimaging, AI development, and the governance of the brain-AI interface. It also addresses the importance of cognitive liberty, mental privacy, mental integrity, and psychological continuity in the context of emerging neurotechnologies. The lecture emphasizes the need for a unified ethical framework for the human-AI continuum and the protection of fundamental rights in the digital era.