It does not directly influence rankings, but it affects click-through rate: it is the text that persuades users to choose your result over another.
A good meta description summarises the page in about 140 to 160 characters, includes the topic searched for and gives a reason to click. On this site, it also feeds the llms.txt file intended for AI.