The behavior of a polyelectrolyte adsorbed on a charged surface of high-dielectric constant is studied by both Monte Carlo simulation and analytical methods. It is found that in a low ionic strength medium, the transition is first-order with the repulsive