What does it mean to dream about sword?
A sword tends to mean decision, conflict, and the power to cut through, truth and force together, depending on whether you wield it or face it.
Four ways to read it
Each reading below comes from a named tradition and a cited source, so you can see where it came from and decide what fits your dream.
Freud
Freud would read a phallic and aggressive image, the instrument of will and of the wish to strike.
After Freud, The Interpretation of Dreams (Brill trans., 1913), public domain.Jung
Jung would see the power of discrimination, the mind that cuts true from false, and the courage to act.
Jungian concept (our summary).Modern
Continuity ties swords to waking conflict, decisiveness, or a clear choice that must be made; the threat-simulation idea fits an attack.
Threat-simulation theory (our summary).Mythological
The hero's sword runs through myth, Excalibur drawn from the stone, the blade that confers kingship and cuts the knot, power joined to destiny.
Rosmerta Publishing editorial synthesis (after Bulfinch).