Cython uses `cdef` to define functions that compile directly to C, enabling direct calls without Python interpreter mediation. For external C code, `cdef extern from` integrates C header files, allowing Cython to generate C code that links directly, bypassing the Python C API.