We talk in astronomy about two different kinds of redshift, but they both relate to the motion of a distant object relative to Earth.
When an object that emits light (of any frequency that we can sense) we can measure the radiation's wavelength. When that object and the Earth are moving relative to one another, then the wavelength changes because of that relative motion.
If the distance between the object and the Earth is decreasing, then the incoming radiation is said to be blue-shifted, because the intrinsic wavelength (the wavelength at the source of the emission) seems to be decreased.
If the distance between the object and the Earth is increasing, then the incoming radiation is aid to be red-shifted, because the intrinsic wavelength (the wavelength at the source of the emission) seems to be increased.
If the object is inside the Milky Way it is said to be "local" and the red or blue shift is due solely to the relative motion of the star or other source and the Earth. This is stellar redshift.
But, if the object is much farther away (the light from a distant galaxy, for example) then the redshift or blueshift is due mostly to what is called cosmological redshift. The source of that redshift is largely what is called the Hubble Flow: the stretching of spacetime we suspect is due to the expansion of the Universe.
At local scales, the actual movement of the object is the primary component of redshift, whereas at larger scales the component due to the expansion of the Universe predominates.
You often find vigorous discussion and disagreement over the causes of cosmological redshift. Regardless, it is observed.