Let $K$ and $X$ be compact plane sets such that $Ksubseteq X$. Let $P(K)$ be the uniform closure of polynomials on $K$. Let $R(K)$ be the closure of rational functions K with poles off $K$. Define $P(X,K)$ and $R(X,K)$ to be the uniform algebras of functions in $C(X)$ whose restriction to $K$ belongs to $P(K)$ and $R(K)$, respectively. Let $CZ(X,K)$ be the Banach algebra of functions $f$ in $C(X)$ such that $f|_K = 0$. In this paper, we show that every nonzero complex homomorphism' on $CZ(X,K)$ is an evaluation homomorphism $e_z$ for some $z$ in $Xsetminus K$. By considering this fact, we characterize the maximal ideal space of the uniform algebra $P(X,K)$. Moreover, we show that the uniform algebra $R(X,K)$ is natural.