One of the disadvantages of amalgam fillings is that they can expand due to temperature changes. While the expansion usually isn’t drastic or noticeable, over time it can possibly lead to a cracked tooth.
Composite fillings, on the other hand, don’t expand or contract due to temperature.