We study how history-dependent properties arise in soft matter far from equilibrium, from microscopic theory to continuum mechanics: how does paint flow? how do residual stresses arise in plastic? how do self-propulsion forces of active matter reshape the dynamics?