In Cython, marking a function with the `nogil` annotation (e.g., `cdef func() nogil:`) does not release the GIL at runtime. Instead, it serves as a compile-time declaration, informing Cython that the function is safe to be called when the GIL is released and enabling static checks to prevent disallowed Python interactions. The actual GIL release only occurs when the code is executed within a `with nogil:` context manager.