William Ackman has resigned from J.C. Penney Co.'s board as part of a deal to resolve an unusually public battle between the activist investor and the struggling department store operator.

J.C. Penney's rose in premarket trading Tuesday.