The monastery of Agali, probably dedicated to Saints Cosmas and Damian, was founded around 590/600 in the vicinity of Toledo. It probably lay along the important road from Complutum to Gaul. Several of its monks became bishops of Toledo during the seventh century.