The splice() method removes elements from an array and returns the removed elements. It takes three arguments: the index from which to start the removal, the number of elements to remove, and (optional) the new elements to add to the array.