meanwhile , grant was laying siege to petersburg , virginia , and in march 1865 ( as mendel was giving the second part of his talk ) , lee abandoned both petersburg and richmond , the confederate capital .