Q-switched mode-locked, unstable Q-switched mode-locked and Q-switched regimes can be obtained in a solid-state microchip laser with a saturable absorber without long resonator. The length of the saturable absorber determines first pulse intensity, maximum intensity of a pulse envelope and a width of the first pulse.