The entanglement entropy associated with a spatial boundary in quantum field theory is ultraviolet divergent, its leading term being proportional to the area of the boundary. Callan and Wilczek proposed a geometrical prescription for computing this entanglement entropy as the response of the gravitational effective action to a conically singular metric perturbation. I argue that the Callan-Wilczek prescription is rigorously justified at least for a particular class of quantum states each expressible as a Euclidean path integral. I then show that the entanglement entropy is rendered ultraviolet finite by precisely the counterterms required to cancel the ultraviolet divergences in the gravitational effective action. In particular, the leading contribution to the entanglement entropy is given by the renormalized Bekenstein-Hawking formula. These results apply to a general quantum field theory coupled to a fixed background metric, holding for arbitrary entangling surfaces with vanishing extrinsic curvature in any dimension, to all orders in perturbation theory in the quantum fields, and for all ultraviolet divergent terms in the entanglement entropy. I also reconcile these results on the entanglement entropy with the existing literature, compare them to the Wald entropy, and speculate on their interpretation and implication.