We will show that any open Riemann surface $M$ of finite genus is biholomorphic to an open set of a compact Riemann surface. Moreover, we will introduce a quotient space of forms in $M$ that determines if $M$ has finite genus and also the minimal genus where $M$ can be holomorphically embedded.