When was synchronized swimming invented?

Synchronized swimming first appeared at around the turn of the 20th century, though at the time it was known as water ballet. The first recorded competition was in 1891.