Suppose we have a ramified covering $\displaystyle \pi : M \to N$ of Riemann surfaces, of finite degree $\displaystyle n$. The function field $\displaystyle K(M)$ of $\displaystyle M$ is the field of meromorphic functions $\displaystyle M \rightarrow S^2$. Now, given $\displaystyle f \in K(N)$, we have the contravariant functor $\displaystyle f^* : K(N) \to K(M)$, which takes $\displaystyle g \in K(N)$ to $\displaystyle f^*(g) = g \circ \pi$. This functor allows us to consider $\displaystyle K(N)$ as a subobject of $\displaystyle K(M)$, i.e., $\displaystyle K(M)$ as a field extension of $\displaystyle K(N)$. Now I've heard that, as long as the degree of the covering is finite, then $\displaystyle K(M)$ is analgebraicextension of $\displaystyle K(N)$, and $\displaystyle [K(M):K(N)] = n$. This idea is very beautiful, and I've been told it's the basic idea of Grothendieck's Galois theory. It seems "obvious" to me that this is true, but I'm clueless at how one would go about proving it.

Any insight is much appreciated!