Expansion joints allow buildings to accommodate structural movement caused by temperature changes, seismic activity, or settling.