In addition, a scout unit ("exploratores Triputienses") was based in the area, either in the "Altstadtkastell" or in a nearby separate fort. The cohort castrum likely was continuously occupied until about 260, when the Romans abandoned this part of their border after heavy raids by Germanic tribes. The castrum was destroyed by the Alemanni. The Limes itself met the Main near the eastern castrum, "Miltenberg-Ost" which housed a Numerus, a smaller military unit. The exact line the wall followed for the first few kilometers near the Main is not known. This smaller fort was likely built in the 2nd century, probably soon after 150. It was in use at most until the middle of the 3rd century. During their presence, the Romans also built at least two sanctuaries dedicated to Mercury on the Greinberg. After the withdrawal of the Romans from the area, the regional population declined. Burgundians and Alemanni moved through the lower Main region, but it was only under the Franks (after 500 AD) that the population density again rose noticeably. Their settlements often did not simply grow out of the formerly Roman cores but included separate newly established sites. Early Medieval settlers concentrated on the area south of the former "Altstadtkastell", northwest of the current town. A Carolingean church was likely built there (9th century) and stones from the castrum were used in early Medieval fortifications nearby. In the 10th to 12th century a town wall was added to this castle-like structure, largely following the foundations of the castrum. A flooded moat surrounded the wall. A Romanesque church was built inside the walled area. This settlement likely was the "civitas Walehusen", owned by the Count Palatinate in his role as "Vogt" of Lorsch Abbey. This was destroyed in 1247 by troops of the Archbishop of Mainz, Siegfried III. At this point, the population of Walehausen/Wallhausen was likely moved to the village Miltinburc, previously founded by Mainz during the first quarter of the 13th century and mentioned first in 1226. Another village, Vachhausen, in between Miltinburc and Wallhausen, was abandoned in the Middle Ages, but the Gothic "Laurentiuskapelle", located far from the Medieval center of Miltenberg, was built on the remains of the earlier Romanesque parish church of Vachhausen.