To extract files from a tarball, use the command 'tar -xf archive.tar'. This command will extract the files from the tarball and restore them to their original state.