Heapsort is a sorting algorithm that relies on the properties of heap data structures to function correctly.