The wall protected the poor quarter surrounding all its area, and was connected to the higher zone of the Castle and the village. Today, several stretches of San Miguel low enclosure are preserved, and also part of the mill building: Basement and grinding room, spillway and annexed rooms.
The origin of the mill is medieval, possibly between the 14th-15th centuries, when the poor quarter is walled. The mill supplied flour to San Miguel and Santa María's inhabitants, from who we know, went down the Hill for supplies daily.
In the second half of the 20th century the weir was dynamited in order to make Guadaíra's flow easier, removing the tiles and destroying the mill building and the miller's house, both already abandoned by mid-century.