To leave a mark / To leave a lasting impression
Literally 'to leave a footprint'. Describes having a lasting impact on something or someone. Can be positive or negative.
That teacher left a lasting mark on all his students.
The war left its mark on a whole generation.
—Do you remember her? —Yes, she left a lasting impression.