Pybind11 achieves zero-copy by leveraging Python's buffer protocol for NumPy arrays and the inherent contiguous memory layout of C++ STL containers like `std::vector`. This allows C++ code to directly access and manipulate the underlying memory of Python objects without creating new copies.