I will review the constraints set by X-ray measurements of afterglows on several issues of GRB, with particular regard to the fireball model, the environment, the progenitor and dark GRB.