Cuneiform began as accounting. Scribes in Uruk used a reed stylus to mark wet clay tablets to track goods.
Over centuries the signs became wedge-shaped as scribes used a cut reed stylus, and the system grew to record laws, letters, literature and science and was adapted to languages across the Near East.