An investigation is underway into the cause of a fire that significantly damaged an Attleboro church Wednesday afternoon.