According to some ancient texts and legends, the first king was a figure named Sargon of Akkad. Sargon was the founder of the Akkadian Empire, which flourished in Mesopotamia (modern-day Iraq) between 2334 and 2154 BCE. He is credited with conquering many city-states in the region and establishing one of the earliest centralized states in the world.
Other ancient texts mention other rulers who are considered to be among the first kings. For example, the Sumerian king list, a historical document from ancient Mesopotamia, mentions a number of kings who ruled before Sargon, including Enmerkar and Gilgamesh.
In the Bible, the first king mentioned is Saul, who was anointed as the first king of Israel around 1020 BCE. Saul was succeeded by David, who established Jerusalem as the capital of Israel and is considered one of the most famous kings in history.
Ultimately, the question of who was the world's first king is a matter of historical debate and interpretation. Different cultures and civilizations have their own stories and legends about the origins of kingship, and there is no single answer that can be universally agreed upon.