 The earliest evidence of Zeil am Main as a city is in a 1018 AD deed of donation signed by Henry II, King of the Romans.Bishop Lamprecht of Prun granted municipal law to the city in 1379 and allowed citizens of Zeil to build protective fortifications.As a result, the city wall was constructed with numerous towers, and Schmachtenberg castle was built.