The param() method is used to create a serialized representation of an array or an object. It is useful in the URL query string when making an AJAX request.