I just had this happen as well. I was the barbs, and just had started attacking the last civ left, Rome. Right after I took their first city, they finished the great wall and it appeared in front of me. I thought, "Oh, heck, now what am I going to do?" Then I walked right through it.