A gain flattening device for an optical fiber amplifier. In the gain
flattening device, a first end portion, having first and second ends,
receives an amplified optical signal from a first amplification fiber via
the first end. A second end portion, having third and fourth ends,
outputs the amplified optical signal to a second amplification fiber via
the fourth end. A first connector is included for connecting the first
end to the third end. A second connector is included for connecting the
second end to the fourth end. At least one reflective grating is further
included with a predetermined gain curve at a predetermined wavelength
band. An optical coupling portion couples the amplified optical signal
from the first connector to the second connector in at least one coupling
region where the first and second connectors are closer to each other
than in any other area, and outputs part of the amplified optical signal
reflected from the reflective grating via the second end.