The monastery was built at a tumultuous time in Christian history and its design was based on that of a castle , to act as a protection of the faith and its treasures , as well as for worship .
There were many attempted raids on the monastery but all failed .