Writing first emerged around 5,000 years ago in ancient Mesopotamia, with the development of cuneiform script. However, earlier forms of proto-writing, such as cave paintings and tally marks, can be traced back tens of thousands of years.