Dark matter and dark energy are two different invisible components of the universe. Dark matter behaves like unseen mass: it interacts through gravity and helps hold galaxies and galaxy clusters together, making up roughly 27% of the cosmos.
Dark energy is the name for whatever is causing the universe’s expansion to accelerate; it acts more like a smooth, repulsive influence and accounts for about 68% of the universe’s total mass-energy. In short, dark matter pulls inward, while dark energy pushes outward.
Source: What’s the difference between dark matter and dark energy? — Astronomy.