A tar file is used to combine a group of files into a single file. tar files with a .gz extension are compressed to conserve disk space.