HAVING is an SQL clause used with GROUP BY to filter grouped data, allowing conditional selection of groups in database queries.