In SQL, the ROW_NUMBER() function is a type of window function that assigns a unique number to each row in a result set, starting at 1 for the first row. This function is used to enumerate the rows in a query result and can be useful for pagination, filtering, and ranking results.