Remark 66.20.9. Let $S$ be a scheme. Let $f : Y \to X$ be a quasi-compact and quasi-separated morphism of algebraic spaces over $S$. Then $f$ has a canonical factorization

$Y \longrightarrow \underline{\mathop{\mathrm{Spec}}}_ X(f_*\mathcal{O}_ Y) \longrightarrow X$

This makes sense because $f_*\mathcal{O}_ Y$ is quasi-coherent by Lemma 66.11.2. The morphism $Y \to \underline{\mathop{\mathrm{Spec}}}_ X(f_*\mathcal{O}_ Y)$ comes from the canonical $\mathcal{O}_ Y$-algebra map $f^*f_*\mathcal{O}_ Y \to \mathcal{O}_ Y$ which corresponds to a canonical morphism $Y \to Y \times _ X \underline{\mathop{\mathrm{Spec}}}_ X(f_*\mathcal{O}_ Y)$ over $Y$ (see Lemma 66.20.7) whence a factorization of $f$ as above.

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).