Every lunar swirl identified to date coincides with a magnetic field over the lunar surface, which scientists think deflects solar particles. There also seems to be a connection between lunar swirls and lava tubes buried beneath them.
Moon solar system lava tubes solar wind surface of the Moon lunar swirls