Lasers are monochromatic in the sense that they produce a narrow range of frequencies.
The difference between a laser and an ordinary light is the optical cavity. Cavity design is complex. For some lasers a very narrow range of frequencies is crucial. Others have different goals.
Cavities have modes. A mode is a beam that can reflect one round trip through the cavity and interfere constructively with itself. This more or less means double the cavity length must be a multiple of the wavelength.
For cavities longer than a laser diode, the natural line width of a given transition is typically much larger than the width of a mode. This means that the laser could emit several closely space frequencies. Mode competition can prevent this. An atom in a cavity stays in an excited state until a photon comes along and stimulates the atom to emit an identical photon. If one mode has a high intensity than the others, the odds are highest that the next photon to pass by will be from that mode. That mode gains intensity at the expense of others, and quickly becomes the only mode.
One transition may have a higher gain than another. This transition will be the one to lase. This may not be your favorite transition. Sometimes an optical filter is put in a cavity to absorb this wavelength and prevent it from being amplified.
This is enough for most lasers. But some, designed for Single Frequency Operation, achieve a narrower line width. One way is to add an optical filter, such as an etalon, that only passes an extremely narrow band of wavelengths. There are other approaches.