In a nutshell
Replication keeps copies of the same data on several machines. One machine is the leader and takes all the writes; it streams every change to the followers, which hold matching copies. Reads can be spread across the followers, so you add read capacity just by adding copies. And if the leader dies, a follower is promoted to replace it — so the system survives a machine failure with only a brief pause in writes.