<p>An electrocoat coating composition comprising an electrodepositable resin that has functionality reactive with isocyanate and a curing agent having at least one allophanate groups is described. The invention also provides a method of applying the composition of the invention to a substrate and curing the applied coating.</p>