The merge() function combines two DataFrames such that two rows with some common value are merged together in the final result.