What religious war was fought in the 16th century