After various flanking movements and costly assaults, the problem of taking Lee narrowed itself down to a siege of Petersburg.