Bobastro is the ruins of an old castle in the Province of Málaga. The castle was of Roman origin, but rebuilt by Umar ibn Hafsun during his rebellion against the Caliphate of Cordoba in the 9th century.
There had been a structure at the site since Roman times. In 880 AD, Umar ibn Hafsun settled in the ruins of the old castle of Bobastro near Ardales, in which he incited the muwallads and mozarabs to join his cause against the unfair, heavy taxation and humiliating treatment they were receiving at the hands of Abd ar-Rahman II and his successors. The rebels constructed a church within the castle which lasted until the end of their autonomy on January 19, 928.
In 888 AD, Al-Mundhir of Córdoba was murdered at Bobastro by his brother Abdullah ibn Muhammad al-Umawi, who later succeeded him.
The Church of St Donatus name refers to Donatus of Zadar, who began construction on this church in the 9th century and ended it on the northeastern part of the Roman forum. It is the largest Pre-Romanesque building in Croatia.
The beginning of the building of the church was placed to the second half of the 8th century, and it is supposed to have been completed in the 9th century. The Zadar bishop and diplomat Donat (8th and 9th centuries) is credited with the building of the church. He led the representations of the Dalmatian cities to Constantinople and Charles the Great, which is why this church bears slight resemblance to Charlemagne's court chapels, especially the one in Aachen, and also to the Basilica of San Vitale in Ravenna. It belongs to the Pre-Romanesque architectural period.
The circular church, formerly domed, is 27 m high and is characterised by simplicity and technical primitivism.