$wpdb is a WordPress global object that allows interaction with the database using PHP.
It provides methods to safely query, insert, update, and delete data in WordPress tables.