The main reasons for failure of both amalgam and composite fillings according to several studies are secondary caries and fracture of the restoration. Amalgam fillings generally have higher longevity than composites, with survival rates over 10 years of 82-95% for amalgam versus 79-86% for composite according to two studies. However, factors like cavity size, surfaces involved, operator experience, and patient factors like oral hygiene and caries risk can significantly affect longevity. Annual failure rates are typically reported to be 0-7% for amalgam and 0-9% for composite in posterior teeth.