Bubblesort is a simple sorting algorithm that iterates sequentially through elements of an array and compares the current item with the one behind it, and either swaps them or continues, repeating until there are no more swaps needed. This results in items "bubbling" to the top of the list.