A linearly polarized all-fiber erbium laser is presented in this work. The polarization selective element consists on a piece of a single-mode, polarizing microstructured fiber, which is placed within the laser cavity. The microstructured fiber shows a regular lattice of air-holes, in which four holes next to the core were enlarged. This fiber shows a polarization dependent loss of 16 Mm around 1550 nm. ne laser cavity presents different losses for each polarization and, as a consequence, a highly polarized emission is obtained. The polarization ratio of the emitted power was in excess of 20 dB.