The goal of Gin Rummy is to make as many tiles as possible (three or more tiles of the same number, or three or more tiles of the same suit with consecutive numbers) and to minimize the sum of the remaining unpaired tiles.