The date_trunc() function in PostgreSQL is used to truncate a timestamp to a specific precision. For example, if you want to truncate a timestamp to the week level, you can use the DATE_TRUNC('week', timestamp_column) function.