Photoacoustic imaging is based on the detection of generated acoustic waves through thermal expansion of tissue illuminated by short laser pulses. Fiber lasers as an excitation source for photoacoustic imaging have recently been preferred for their high repetition frequencies. Here, we report a unique fiber laser developed specifically for multiwavelength photoacoustic microscopy system. The laser is custom-made for maximum flexibility in adjustment of its parameters; pulse duration (5–10 ns), pulse energy (up to 10 μJ) and repetition frequency (up to 1 MHz) independently from each other and covers a broad spectral region from 450 to 1100 nm and also can emit wavelengths of 532, 355, and 266 nm. The laser system consists of a master oscillator power amplifier, seeding two stages; supercontinuum and harmonic generation units. The laser is outstanding since the oscillator, amplifier and supercontinuum generation parts are all-fiber integrated with custom-developed electronics and software. To demonstrate the feasibility of the system, the images of several elements of standardized resolution test chart are acquired at multiple wavelengths. The lateral resolution of optical resolution photoacoustic microscopy system is determined as 2.68 μm. The developed system may pave the way for spectroscopic photoacoustic microscopy applications via widely tunable fiber laser technologies.