The history of the town dates back to the early years of Polish statehood. Mentioned as Uneievo in a bull of Pope Innocent II (1136), Uniejów is one of the oldest towns of Poland. At that time it belonged to the Archbishops of Gniezno, and received its town charter most likely before 1290.