Composite fillings can stain over time if they are exposed to certain foods and beverages, such as coffee or tea.