An was a ruler of a petty kingdom in the history of the Ryukyu Islands. The word later became a title and rank of nobility in the Ryūkyū Kingdom. It is said to be related to the Japanese aruji ("master"), and the pronunciation varied throughout the islands.