The return to user space in RISC-V is managed using sret instruction. The sret instruction is used to return from supervisor mode to user mode. The sret instruction restores the CPU state from the saved program counter(sepc) and the saved status register(sstatus).