RMI is a remote method invocation protocol that provides a more efficient way to invoke methods on remote objects. RPC, on the other hand, is a remote procedure call protocol.