the treatment of the cavity depends upon how deep it is. if the cavity is small amalgam or composite filling needs to be done. if the cavity is deep root canal treatment followed by crown placement has to do. so the gap will be filled and also the cavity won’t get spread.